POST api/State
Request Information
URI Parameters
None.
Body Parameters
StateViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
Required |
|
| StateDetailsId | integer |
None. |
|
| Capital | string |
None. |
|
| ChiefMinister | string |
None. |
|
| PDensity | string |
None. |
|
| Governer | string |
None. |
|
| Population | string |
None. |
|
| Area | string |
None. |
|
| Website | string |
None. |
|
| TotalDist | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"StateDetailsId": 1,
"Capital": "sample string 3",
"ChiefMinister": "sample string 4",
"PDensity": "sample string 5",
"Governer": "sample string 6",
"Population": "sample string 7",
"Area": "sample string 8",
"Website": "sample string 9",
"TotalDist": 1
}
text/xml
Sample:
<StateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models"> <Area>sample string 8</Area> <Capital>sample string 3</Capital> <ChiefMinister>sample string 4</ChiefMinister> <Governer>sample string 6</Governer> <Id>1</Id> <Name>sample string 2</Name> <PDensity>sample string 5</PDensity> <Population>sample string 7</Population> <StateDetailsId>1</StateDetailsId> <TotalDist>1</TotalDist> <Website>sample string 9</Website> </StateViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
StateViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
Required |
|
| StateDetailsId | integer |
None. |
|
| Capital | string |
None. |
|
| ChiefMinister | string |
None. |
|
| PDensity | string |
None. |
|
| Governer | string |
None. |
|
| Population | string |
None. |
|
| Area | string |
None. |
|
| Website | string |
None. |
|
| TotalDist | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"StateDetailsId": 1,
"Capital": "sample string 3",
"ChiefMinister": "sample string 4",
"PDensity": "sample string 5",
"Governer": "sample string 6",
"Population": "sample string 7",
"Area": "sample string 8",
"Website": "sample string 9",
"TotalDist": 1
}
text/xml
Sample:
<StateViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeroPalikaApi.Models"> <Area>sample string 8</Area> <Capital>sample string 3</Capital> <ChiefMinister>sample string 4</ChiefMinister> <Governer>sample string 6</Governer> <Id>1</Id> <Name>sample string 2</Name> <PDensity>sample string 5</PDensity> <Population>sample string 7</Population> <StateDetailsId>1</StateDetailsId> <TotalDist>1</TotalDist> <Website>sample string 9</Website> </StateViewModel>