This app is part of a job interview with 123 Milhas.
click HERE!
This repo is functionality complete. Access live demo byGetting started
Installation
Please check the official laravel installation guide for server requirements before you start. Official Documentation
Clone the repository
git clone [email protected]:higorcriativa3/123-milhas-challenge.git
Switch to the repo folder
cd 123-milhas-challenge
Install all the dependencies using composer
composer install
Copy the example env file and make the required configuration changes in the .env file
cp .env.example .env
Generate a new application key
php artisan key:generate
Start the local development server
php artisan serve
You can now access the server at http://localhost:8000
Get group of Flights
/api/flightsapi
to get the group of flights.
Access Get Documentation
Click here to get documentation.
Important Folders
.scribe
- Contains all of the Scribe files for documentationapp/Http/Controllers
- Contains the Flights HTTP controllerapp/Providers
- Contains the Flights API serviceapp/Functions
- Contains Functions that treat flightsroutes
- Contains the router of API (api.php)
Environment variables
.env
- Environment variables can be set in this file
here.
Note : You can get the POSTMAN collectionTesting API
Run the laravel development server
php artisan serve
The api can now be accessed at
http://localhost:8000/api
Request headers
Required | Key | Value |
---|---|---|
Yes | Content-Type | application/json |
Yes | X-Requested-With | XMLHttpRequest |
Optional | Authorization | Token {JWT} |