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