POST api/Institution
Request Information
URI Parameters
None.
Body Parameters
InstitutionViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| WardNo | integer |
None. |
|
| School | integer |
None. |
|
| HealthPost | integer |
None. |
|
| Bank | integer |
None. |
|
| GovernmentOffice | integer |
None. |
|
| Industry | integer |
None. |
|
| SecurityAgencies | integer |
None. |
|
| NaturalResource | integer |
None. |
|
| CulturalHeritage | integer |
None. |
|
| TownWardOffice | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"WardNo": 2,
"School": 1,
"HealthPost": 1,
"Bank": 1,
"GovernmentOffice": 1,
"Industry": 1,
"SecurityAgencies": 1,
"NaturalResource": 1,
"CulturalHeritage": 1,
"TownWardOffice": 1
}
text/xml
Sample:
<InstitutionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models"> <Bank>1</Bank> <CulturalHeritage>1</CulturalHeritage> <GovernmentOffice>1</GovernmentOffice> <HealthPost>1</HealthPost> <Id>1</Id> <Industry>1</Industry> <NaturalResource>1</NaturalResource> <School>1</School> <SecurityAgencies>1</SecurityAgencies> <TownWardOffice>1</TownWardOffice> <WardNo>2</WardNo> </InstitutionViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
InstitutionViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| WardNo | integer |
None. |
|
| School | integer |
None. |
|
| HealthPost | integer |
None. |
|
| Bank | integer |
None. |
|
| GovernmentOffice | integer |
None. |
|
| Industry | integer |
None. |
|
| SecurityAgencies | integer |
None. |
|
| NaturalResource | integer |
None. |
|
| CulturalHeritage | integer |
None. |
|
| TownWardOffice | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"WardNo": 2,
"School": 1,
"HealthPost": 1,
"Bank": 1,
"GovernmentOffice": 1,
"Industry": 1,
"SecurityAgencies": 1,
"NaturalResource": 1,
"CulturalHeritage": 1,
"TownWardOffice": 1
}
text/xml
Sample:
<InstitutionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models"> <Bank>1</Bank> <CulturalHeritage>1</CulturalHeritage> <GovernmentOffice>1</GovernmentOffice> <HealthPost>1</HealthPost> <Id>1</Id> <Industry>1</Industry> <NaturalResource>1</NaturalResource> <School>1</School> <SecurityAgencies>1</SecurityAgencies> <TownWardOffice>1</TownWardOffice> <WardNo>2</WardNo> </InstitutionViewModel>