GET api/Ships
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Collection of Ship| Name | Description | Type | Additional information |
|---|---|---|---|
| Name | string |
None. |
|
| ShipID | integer |
None. |
|
| OwnerID | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Name": "sample string 1",
"ShipID": 2,
"OwnerID": 3
},
{
"Name": "sample string 1",
"ShipID": 2,
"OwnerID": 3
}
]
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>3</OwnerID>
<ShipID>2</ShipID>
</Ship>
<Ship>
<Name>sample string 1</Name>
<OwnerID>3</OwnerID>
<ShipID>2</ShipID>
</Ship>
</ArrayOfShip>