POST api/Airplanes
Creates a new airplane and automatically generates its seats.
Request Information
URI Parameters
None.
Body Parameters
The airplane object to be added.
AirplaneName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
Model | string |
None. |
|
IsActive | boolean |
None. |
|
ExecutiveSeats | integer |
None. |
|
EconomicSeats | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "Model": "sample string 2", "IsActive": true, "ExecutiveSeats": 4, "EconomicSeats": 5 }
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HTTP response indicating success or failure.
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.