POST api/v1/StateList

Request Information

URI Parameters

None.

Body Parameters

StoreCountInput
NameDescriptionTypeAdditional information
CompID

integer

None.

LocCode

string

None.

LocID

integer

None.

LocTypeID

integer

None.

LocGroupID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "CompID": 1,
  "LocCode": "sample string 2",
  "LocID": 3,
  "LocTypeID": 4,
  "LocGroupID": 5
}

application/xml, text/xml

Sample:
<StoreCountInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <CompID>1</CompID>
  <LocCode>sample string 2</LocCode>
  <LocGroupID>5</LocGroupID>
  <LocID>3</LocID>
  <LocTypeID>4</LocTypeID>
</StoreCountInput>

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

Response Information

Resource Description

Collection of StateListModel
NameDescriptionTypeAdditional information
StateID

integer

None.

StateName

string

None.

StateAbbr

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "StateID": 1,
    "StateName": "sample string 2",
    "StateAbbr": "sample string 3"
  },
  {
    "StateID": 1,
    "StateName": "sample string 2",
    "StateAbbr": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfStateListModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <StateListModel>
    <StateAbbr>sample string 3</StateAbbr>
    <StateID>1</StateID>
    <StateName>sample string 2</StateName>
  </StateListModel>
  <StateListModel>
    <StateAbbr>sample string 3</StateAbbr>
    <StateID>1</StateID>
    <StateName>sample string 2</StateName>
  </StateListModel>
</ArrayOfStateListModel>