POST api/States

Request Information

URI Parameters

None.

Body Parameters

State
NameDescriptionTypeAdditional information
STATE

string

None.

NAME

string

None.

COUNTRY

string

None.

OLD

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "STATE": "sample string 1",
  "NAME": "sample string 2",
  "COUNTRY": "sample string 3",
  "OLD": 1
}

application/octet-stream

Sample:
{"STATE":"sample string 1","NAME":"sample string 2","COUNTRY":"sample string 3","OLD":1}

application/xml, text/xml

Sample:
<State xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <STATE>sample string 1</STATE>
  <NAME>sample string 2</NAME>
  <COUNTRY>sample string 3</COUNTRY>
  <OLD>1</OLD>
</State>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'State'.

Response Information

Resource Description

State
NameDescriptionTypeAdditional information
STATE

string

None.

NAME

string

None.

COUNTRY

string

None.

OLD

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "STATE": "sample string 1",
  "NAME": "sample string 2",
  "COUNTRY": "sample string 3",
  "OLD": 1
}

application/octet-stream

Sample:
{"STATE":"sample string 1","NAME":"sample string 2","COUNTRY":"sample string 3","OLD":1}

application/xml, text/xml

Sample:
<State xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <STATE>sample string 1</STATE>
  <NAME>sample string 2</NAME>
  <COUNTRY>sample string 3</COUNTRY>
  <OLD>1</OLD>
</State>