GET api/Carriers
Gets a list of carriers.
Request Information
URI Parameters
None.
Body Parameters
None.
Remarks
Gets a list of carriers with id numbers and carrier codes.
Example
//Gets a list of all carriers
GET: http://localhost/api/carriers/
Response Information
Resource Description
List of carriers
Collection of CarrierResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Id of the carrier. |
integer |
Required |
| CarrierCode |
Carriers code. |
string |
Required |
Response Formats
application/json, text/json
Sample:
[
{
"Id": 1,
"CarrierCode": "sample string 2"
},
{
"Id": 1,
"CarrierCode": "sample string 2"
}
]
application/xml, text/xml
Sample:
<ArrayOfCarrierResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.DDAPI.DTO.Stock">
<CarrierResponse>
<CarrierCode>sample string 2</CarrierCode>
<Id>1</Id>
</CarrierResponse>
<CarrierResponse>
<CarrierCode>sample string 2</CarrierCode>
<Id>1</Id>
</CarrierResponse>
</ArrayOfCarrierResponse>