Create event
HTTP request
POST /api/v1/event/create
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| secret | String | Required | Secret key |
| event.name | String | Required | Event name |
| event.desc | String | Required | Event description |
| event.cover | String | Required | Cover URL |
| event.breifing.pilot | String | Pilot breifing docs URL | |
| event.breifing.atc | String | ATC breifing docs URL |
Response
Returns a 200 HTTP status code and a JSON object with the following data.
| Property | Type | Description |
|---|---|---|
| response.data.event.id | String | Event ID |
List all avaliable events
HTTP Request
GET /api/v1/event/list
Response
Returns a 200 HTTP status code and a JSON object with the following data.
| Property | Type | Description |
|---|---|---|
| response.data.events | Array | Array of events |
Get event detail by ID
HTTP Request
GET /api/v1/event/get/:evid
Path parameters
| Parameter | Description |
|---|---|
| evid | Event ID |
Response
Returns a 200 HTTP status code and a JSON object.
Remove event
HTTP Request
DELETE /api/v1/event/remove
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| secret | String | Required | Secret key |
| event.id | String | Required | Event ID |
Response
Returns a 200 HTTP status code and a JSON object.
Toggle event to be available
HTTP Request
POST /api/v1/event/toggle
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| secret | String | Required | Secret key |
| event.id | String | Required | Event ID |
Response
Returns a 200 HTTP status code and a JSON object with the following data.
| Property | Type | Description |
|---|---|---|
| response.data.event.isOpen | Array | New event state |
Create flight slot
HTTP request
POST /api/v1/flight/create
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| secret | String | Required | Secret key |
| event.id | String | Required | Event ID |
| flight.name | String | Required | Flight name |
| flight.type | String | Required | Flight type (dep, arr, pri) |
| flight.aircraft | String | Required | Flight aircraft |
| flight.distance | Number | Required | Flight distance |
| flight.airline.code | String | Flight airline ICAO | |
| flight.airport.departure | String | Required | Flight airport departure ICAO |
| flight.airport.arrival | String | Required | Flight airport arrival ICAO |
| flight.time.departure | String | Required | Flight departure time (UTC) |
| flight.time.arrival | String | Required | Flight estimated arrival time |
| flight.time.total | String | Required | Flight estimated total time |
Response
Returns a 200 HTTP status code and a JSON object with the following data.
| Property | Type | Description |
|---|---|---|
| response.data.flight.id | String | Flight ID |
Remove flight slot
HTTP request
DELETE /api/v1/flight/remove
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| secret | String | Required | Secret key |
| event.id | String | Required | Event ID |
| flight.id | String | Required | Flight ID |
Response
Returns a 200 HTTP status code and a JSON object.
List flight IDs
HTTP request
GET /api/v1/flight/list/:evid/:page
Path parameters
| Parameter | Description |
|---|---|
| evid | Event ID |
| page | Pagination page |
Response
Returns a 200 HTTP status code and a JSON object with the following data.
| Property | Type | Description |
|---|---|---|
| response.data.flights | Array | Array of Flight ID |
Get flight details
HTTP request
GET /api/v1/flight/get/:evid/:flid
Path parameters
| Parameter | Description |
|---|---|
| evid | Event ID |
| flid | Flight ID |
Response
Returns a 200 HTTP status code and a JSON object with the following data.
| Property | Type | Description |
|---|---|---|
| response.data.flight.id | String | Flight ID |
| response.data.flight.flight | String | Flight name |
| response.data.flight.type | String | Flight type |
| response.data.flight.aircraft | String | Flight aircraft |
| response.data.flight.bay.departure | String | Flight departure bay |
| response.data.flight.bay.arrival | String | Flight arrival bay |
| response.data.flight.airport.departure | String | Flight airport departure ICAO |
| response.data.flight.airport.arrival | String | Flight airport arrival ICAO |
| response.data.flight.time.departure | String | Flight departure time (UTC) |
| response.data.flight.time.arrival | String | Flight arrival time (UTC) |
| response.data.flight.time.total | String | Total flight time |
| response.data.flight.related.id | String | Related flight ID |
Reserve flight
HTTP request
POST /api/v1/flight/reserve
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| event.id | String | Required | Event ID |
| flight.id | String | Required | Flight ID |
| flight.reserver.token | String | Required | Reserver's IVAO login token |
| withRelated | Boolean | Required | Set true if user also need to reserve related flight |
Response
Returns a 200 HTTP status code and a JSON object.
List of flights that reserved by user (Limit at 50 records)
HTTP request
GET /api/v1/flight/reserved/:vid
Path parameters
| Parameter | Description |
|---|---|
| vid | User VID |
Response
Returns a 200 HTTP status code and a JSON object.
Set related flight
HTTP request
POST /api/v1/flight/related
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| secret | String | Required | Secret key |
| event.id | String | Required | Event ID |
| flight.id | String | Required | Flight ID |
| set | Boolean | Required | Set true to set and set to false to unset |
Response
Returns a 200 HTTP status code and a JSON object.
Cancel reserved flight
HTTP request
POST /api/v1/flight/cancel
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| token | String | Required | User IVAOTOKEN |
| event.id | String | Required | Event ID |
| flight.id | String | Required | Flight ID |
Create airline record
HTTP request
POST /api/v1/airline/create
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| secret | String | Required | Secret key |
| airline.code | String | Required | Airline ICAO |
| airline.name | String | Required | Airline name |
Response
Returns a 200 HTTP status code and a JSON object.
Get airline record
HTTP request
GET /api/v1/airline/get/:code
Path parameters
| Parameter | Description |
|---|---|
| code | Airline ICAO |
Response
Returns a 200 HTTP status code and a JSON object with the following data.
| Property | Type | Description |
|---|---|---|
| response.data.airline.code | String | Airline ICAO |
| response.data.airline.name | String | Airline name |
Create route record
HTTP request
POST /api/v1/route/create
Request headers
| Request header | Description |
|---|---|
| Content-Type | application/json |
Request body
| Property | Type | Required | Description |
|---|---|---|---|
| secret | String | Required | Secret key |
| airport.departure | String | Required | Departure airport |
| airport.arrival | String | Required | Arrival airport |
| route | String | Required | Flight route |
Response
Returns a 200 HTTP status code and a JSON object.
Get route record
HTTP request
GET /api/v1/airline/route/:dep/:arr
Path parameters
| Parameter | Description |
|---|---|
| dep | Departure airport |
| arr | Arrival airport |
Response
Returns a 200 HTTP status code and a JSON object with the following data.
| Property | Type | Description |
|---|---|---|
| response.data.route.airport.departure | String | Departure airport |
| response.data.route.airport.arrival | String | Arrival airport |
| response.data.route.route | String | Flight route |
Fetch token data from IVAO Login API
HTTP request
GET /api/v1/token/fetch/:token
Path parameters
| Parameter | Description |
|---|---|
| token | IVAOTOKEN |