POST api/District

Request Information

URI Parameters

None.

Body Parameters

District
NameDescriptionTypeAdditional information
DistrictID

integer

None.

DistrictName

string

None.

StateID

integer

None.

StateName

string

None.

CountryID

integer

None.

CountryName

string

None.

DBID

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

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

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.