GET api/Contents/{auth}
Retrieve a list of contents items for drop down
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| auth |
Authorization token |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
ContentsResp| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccessful |
Used to determine if method call was successful (true) or failure (false) |
boolean |
None. |
| ErrorMessage |
The error message if method call was not successful |
string |
None. |
| Items |
List of contents items |
Collection of ContentsItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorMessage": "sample string 2",
"IsSuccessful": true,
"Items": [
{
"CommodityClass": "sample string 5",
"Instructions": "sample string 2",
"IsDangerousGoods": true,
"IsRadioactive": true,
"ProperName": "sample string 1",
"UNNumber": "sample string 3"
},
{
"CommodityClass": "sample string 5",
"Instructions": "sample string 2",
"IsDangerousGoods": true,
"IsRadioactive": true,
"ProperName": "sample string 1",
"UNNumber": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<ContentsResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mnx.WebApi.Shipper.Models">
<ErrorMessage>sample string 2</ErrorMessage>
<IsSuccessful>true</IsSuccessful>
<Items>
<ContentsItem>
<CommodityClass>sample string 5</CommodityClass>
<Instructions>sample string 2</Instructions>
<IsDangerousGoods>true</IsDangerousGoods>
<IsRadioactive>true</IsRadioactive>
<ProperName>sample string 1</ProperName>
<UNNumber>sample string 3</UNNumber>
</ContentsItem>
<ContentsItem>
<CommodityClass>sample string 5</CommodityClass>
<Instructions>sample string 2</Instructions>
<IsDangerousGoods>true</IsDangerousGoods>
<IsRadioactive>true</IsRadioactive>
<ProperName>sample string 1</ProperName>
<UNNumber>sample string 3</UNNumber>
</ContentsItem>
</Items>
</ContentsResp>