POST api/Doctors/Post
Request Information
URI Parameters
None.
Body Parameters
Doctor| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| LastName | string |
None. |
|
| UserName | string |
None. |
|
| key | string |
None. |
|
| Password | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"LastName": "sample string 2",
"UserName": "sample string 3",
"key": "sample string 4",
"Password": "sample string 5"
}
application/xml, text/xml
Sample:
<Doctor xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MedicalSoftware.Service.Models"> <LastName>sample string 2</LastName> <Name>sample string 1</Name> <Password>sample string 5</Password> <UserName>sample string 3</UserName> <key>sample string 4</key> </Doctor>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Result | Result |
None. |
|
| Data | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Result": 0,
"Data": "sample string 1"
}
application/xml, text/xml
Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MedicalSoftware.Data"> <Data>sample string 1</Data> <Result>OK</Result> </Response>