POST api/Airports
Creates a new airport.
Request Information
URI Parameters
None.
Body Parameters
The airport object containing the new airport data.
AirportName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
IATA | string |
None. |
|
Name | string |
None. |
|
City | string |
None. |
|
Country | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "IATA": "sample string 2", "Name": "sample string 3", "City": "sample string 4", "Country": "sample string 5" }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
The created airport or an error response if the request is invalid or conflicts occur.
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.