GET api/TransportationUnits/ByProfileId?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of GroupedTransportationUnitViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
Required Data type: Text String length: inclusive between 0 and 30 |
|
| Name | string |
Required Data type: Text String length: inclusive between 0 and 30 |
|
| Description | string |
Required Data type: Text String length: inclusive between 0 and 255 |
|
| Rating | IdTextModel |
None. |
|
| Type | IdTextModel |
None. |
|
| Capacity | IdTextModel |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Code": "sample string 1",
"Name": "sample string 2",
"Description": "sample string 3",
"Rating": {
"Id": 1,
"Text": "sample string 2"
},
"Type": {
"Id": 1,
"Text": "sample string 2"
},
"Capacity": {
"Id": 1,
"Text": "sample string 2"
}
},
{
"Code": "sample string 1",
"Name": "sample string 2",
"Description": "sample string 3",
"Rating": {
"Id": 1,
"Text": "sample string 2"
},
"Type": {
"Id": 1,
"Text": "sample string 2"
},
"Capacity": {
"Id": 1,
"Text": "sample string 2"
}
}
]
application/xml, text/xml
Sample:
<ArrayOfGroupedTransportationUnitViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TripPlannerAPI.Models.DTO">
<GroupedTransportationUnitViewModel>
<Capacity>
<Id>1</Id>
<Text>sample string 2</Text>
</Capacity>
<Code>sample string 1</Code>
<Description>sample string 3</Description>
<Name>sample string 2</Name>
<Rating>
<Id>1</Id>
<Text>sample string 2</Text>
</Rating>
<Type>
<Id>1</Id>
<Text>sample string 2</Text>
</Type>
</GroupedTransportationUnitViewModel>
<GroupedTransportationUnitViewModel>
<Capacity>
<Id>1</Id>
<Text>sample string 2</Text>
</Capacity>
<Code>sample string 1</Code>
<Description>sample string 3</Description>
<Name>sample string 2</Name>
<Rating>
<Id>1</Id>
<Text>sample string 2</Text>
</Rating>
<Type>
<Id>1</Id>
<Text>sample string 2</Text>
</Type>
</GroupedTransportationUnitViewModel>
</ArrayOfGroupedTransportationUnitViewModel>