POST api/MaritalStatus

Request Information

URI Parameters

None.

Body Parameters

MaritalStatus
NameDescriptionTypeAdditional information
ID

integer

None.

NAME

string

None.

OLD

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "NAME": "sample string 2",
  "OLD": 1
}

application/octet-stream

Sample:
{"ID":1,"NAME":"sample string 2","OLD":1}

application/xml, text/xml

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

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 'MaritalStatus'.

Response Information

Resource Description

MaritalStatus
NameDescriptionTypeAdditional information
ID

integer

None.

NAME

string

None.

OLD

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "NAME": "sample string 2",
  "OLD": 1
}

application/octet-stream

Sample:
{"ID":1,"NAME":"sample string 2","OLD":1}

application/xml, text/xml

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