GET api/Driver/GetPackageList/{categoryId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| categoryId | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of PackageData| Name | Description | Type | Additional information |
|---|---|---|---|
| PackageName | string |
None. |
|
| PackageId | integer |
None. |
|
| hasInput | boolean |
None. |
|
| Min | integer |
None. |
|
| Max | integer |
None. |
|
| hintText | string |
None. |
|
| errorText | string |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"PackageName": "sample string 1",
"PackageId": 2,
"hasInput": true,
"Min": 4,
"Max": 5,
"hintText": "sample string 6",
"errorText": "sample string 7"
},
{
"PackageName": "sample string 1",
"PackageId": 2,
"hasInput": true,
"Min": 4,
"Max": 5,
"hintText": "sample string 6",
"errorText": "sample string 7"
}
]
text/html
Sample:
[{"PackageName":"sample string 1","PackageId":2,"hasInput":true,"Min":4,"Max":5,"hintText":"sample string 6","errorText":"sample string 7"},{"PackageName":"sample string 1","PackageId":2,"hasInput":true,"Min":4,"Max":5,"hintText":"sample string 6","errorText":"sample string 7"}]
application/xml, text/xml
Sample:
<ArrayOfPackageData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WITTravels.Models">
<PackageData>
<Max>5</Max>
<Min>4</Min>
<PackageId>2</PackageId>
<PackageName>sample string 1</PackageName>
<errorText>sample string 7</errorText>
<hasInput>true</hasInput>
<hintText>sample string 6</hintText>
</PackageData>
<PackageData>
<Max>5</Max>
<Min>4</Min>
<PackageId>2</PackageId>
<PackageName>sample string 1</PackageName>
<errorText>sample string 7</errorText>
<hasInput>true</hasInput>
<hintText>sample string 6</hintText>
</PackageData>
</ArrayOfPackageData>