Welcome to Flight advisor API

Registration

url: /auth/register
method: POST
fields: f_name, l_name, username, password

Login:

url: /auth/login
method: POST
fields: username, password Administrator credentials: admin/password

Get all the cities:

url: /city
method: GET

Get the city:

url: /city
method: GET
field: name, comments
example: name=beograd&comments=1

Create city:

url: /city
method: POST
fields: name, country, description

Create comment

url: comments
method: POST
fields: city_id, comment

Update comment

url: /comments/$comment_id
method: PATCH
fields: comment

Delete comment

url:comments/$comment_id
method: DELETE
example: /comments/1

Import airports

url:import/airports
example: airports=/path/to/file

Import routes

url:import/routes
example: routes=/path/to/file