POST api/BloodBank
Request Information
URI Parameters
None.
Body Parameters
BloodBankViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| BloodBankName | string |
None. |
|
| Description | string |
None. |
|
| ContactNo | string |
None. |
|
| Photo | string |
None. |
|
| Address | string |
None. |
|
| WardId | integer |
None. |
|
| LocalLevelId | integer |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"BloodBankName": "sample string 2",
"Description": "sample string 3",
"ContactNo": "sample string 4",
"Photo": "sample string 5",
"Address": "sample string 6",
"WardId": 1,
"LocalLevelId": 7,
"Latitude": 1.0,
"Longitude": 1.0
}
text/xml
Sample:
<BloodBankViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models"> <Address>sample string 6</Address> <BloodBankName>sample string 2</BloodBankName> <ContactNo>sample string 4</ContactNo> <Description>sample string 3</Description> <Id>1</Id> <Latitude>1</Latitude> <LocalLevelId>7</LocalLevelId> <Longitude>1</Longitude> <Photo>sample string 5</Photo> <WardId>1</WardId> </BloodBankViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BloodBankViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| BloodBankName | string |
None. |
|
| Description | string |
None. |
|
| ContactNo | string |
None. |
|
| Photo | string |
None. |
|
| Address | string |
None. |
|
| WardId | integer |
None. |
|
| LocalLevelId | integer |
None. |
|
| Latitude | decimal number |
None. |
|
| Longitude | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"BloodBankName": "sample string 2",
"Description": "sample string 3",
"ContactNo": "sample string 4",
"Photo": "sample string 5",
"Address": "sample string 6",
"WardId": 1,
"LocalLevelId": 7,
"Latitude": 1.0,
"Longitude": 1.0
}
text/xml
Sample:
<BloodBankViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models"> <Address>sample string 6</Address> <BloodBankName>sample string 2</BloodBankName> <ContactNo>sample string 4</ContactNo> <Description>sample string 3</Description> <Id>1</Id> <Latitude>1</Latitude> <LocalLevelId>7</LocalLevelId> <Longitude>1</Longitude> <Photo>sample string 5</Photo> <WardId>1</WardId> </BloodBankViewModel>