POST api/City/saveCity
Request Information
URI Parameters
None.
Body Parameters
CityModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CityId | integer |
None. |
|
| CityCode | string |
None. |
|
| CityName | string |
None. |
|
| StateId | integer |
None. |
|
| StateCode | string |
None. |
|
| StateName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"CityId": 1,
"CityCode": "sample string 2",
"CityName": "sample string 3",
"StateId": 4,
"StateCode": "sample string 5",
"StateName": "sample string 6"
}
application/xml, text/xml
Sample:
<CityModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPTestAPI.Models"> <CityCode>sample string 2</CityCode> <CityId>1</CityId> <CityName>sample string 3</CityName> <StateCode>sample string 5</StateCode> <StateId>4</StateId> <StateName>sample string 6</StateName> </CityModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CityReturnModel| Name | Description | Type | Additional information |
|---|---|---|---|
| status | boolean |
None. |
|
| msg | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": true,
"msg": "sample string 2"
}
application/xml, text/xml
Sample:
<CityReturnModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPTestAPI.Models"> <msg>sample string 2</msg> <status>true</status> </CityReturnModel>