POST api/GetItem

Request Information

URI Parameters

None.

Body Parameters

ItemModel
NameDescriptionTypeAdditional information
CompanyId

string

None.

ItemId

string

None.

ItemName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CompanyId": "sample string 1",
  "ItemId": "sample string 2",
  "ItemName": "sample string 3"
}

application/xml, text/xml

Sample:
<ItemModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MG_API.Controllers">
  <CompanyId>sample string 1</CompanyId>
  <ItemId>sample string 2</ItemId>
  <ItemName>sample string 3</ItemName>
</ItemModel>

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

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />