GET api/Office/DropDown/{auth}
Used to provide a list of offices (open only)
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| auth |
The authorization GUID for this user session |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
DropDownResp| 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 drop down items |
Collection of DropDownItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccessful": true,
"ErrorMessage": "sample string 2",
"Items": [
{
"Value": "sample string 1",
"Text": "sample string 2"
},
{
"Value": "sample string 1",
"Text": "sample string 2"
}
]
}
application/xml, text/xml
Sample:
<DropDownResp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mnx.WebApi.Transportation.Models">
<ErrorMessage>sample string 2</ErrorMessage>
<IsSuccessful>true</IsSuccessful>
<Items>
<DropDownItem>
<Text>sample string 2</Text>
<Value>sample string 1</Value>
</DropDownItem>
<DropDownItem>
<Text>sample string 2</Text>
<Value>sample string 1</Value>
</DropDownItem>
</Items>
</DropDownResp>