POST api/State

Request Information

URI Parameters

None.

Body Parameters

State
NameDescriptionTypeAdditional information
StateID

integer

None.

StateName

string

None.

CountryID

integer

None.

CountryName

string

None.

DBID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StateID": 1,
  "StateName": "sample string 2",
  "CountryID": 3,
  "CountryName": "sample string 4",
  "DBID": "sample string 5"
}

application/xml, text/xml

Sample:
<State xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApiAssignment.Controllers">
  <CountryID>3</CountryID>
  <CountryName>sample string 4</CountryName>
  <DBID>sample string 5</DBID>
  <StateID>1</StateID>
  <StateName>sample string 2</StateName>
</State>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.