This repo is functionality complete. Access live demo by click HERE!
Please check the official laravel installation guide for server requirements before you start. Official Documentation
Clone the repository
git clone git@github.com: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
Click here to get documentation.
.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)
.env
- Environment variables can be set in this file
Note : You can get the POSTMAN collection here.
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} |