POST api/State?name={name}&sid={sid}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

string

Required

sid

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of StateModel
NameDescriptionTypeAdditional information
Sid

integer

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Sid": 1,
    "Name": "sample string 2"
  },
  {
    "Sid": 1,
    "Name": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication6.Controllers">
  <StateModel>
    <Name>sample string 2</Name>
    <Sid>1</Sid>
  </StateModel>
  <StateModel>
    <Name>sample string 2</Name>
    <Sid>1</Sid>
  </StateModel>
</ArrayOfStateModel>