GET api/ships/{id}
Gets a single ship by ID
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Transteams ShipID |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
A single ship
Ship| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| ShipID | integer |
None. |
|
| OwnerID | integer |
None. |
|
| Vessel_IMO_No | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"Name": "sample string 1",
"ShipID": 2,
"OwnerID": 1,
"Vessel_IMO_No": 1
}
application/xml, text/xml
Sample:
<Ship xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TTWebAPI.DataAccess.DataObjects"> <Name>sample string 1</Name> <OwnerID>1</OwnerID> <ShipID>2</ShipID> <Vessel_IMO_No>1</Vessel_IMO_No> </Ship>