GET api/ships
Gets a list of ships
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of ships
Collection of ShipName | 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 }, { "Name": "sample string 1", "ShipID": 2, "OwnerID": 1, "Vessel_IMO_No": 1 } ]
application/xml, text/xml
Sample:
<ArrayOfShip xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TTWebAPI.DataAccess.DataObjects"> <Ship> <Name>sample string 1</Name> <OwnerID>1</OwnerID> <ShipID>2</ShipID> <Vessel_IMO_No>1</Vessel_IMO_No> </Ship> <Ship> <Name>sample string 1</Name> <OwnerID>1</OwnerID> <ShipID>2</ShipID> <Vessel_IMO_No>1</Vessel_IMO_No> </Ship> </ArrayOfShip>