Challenge for 123 milhas.

Overview

Laravel Example App

GitHub license

This app is part of a job interview with 123 Milhas.

This repo is functionality complete. Access live demo by click HERE!


Getting 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

Access /api/flightsapi to get the group of flights.


Get Documentation

Click here to get documentation.

Important Folders

  • .scribe - Contains all of the Scribe files for documentation
  • app/Http/Controllers - Contains the Flights HTTP controller
  • app/Providers - Contains the Flights API service
  • app/Functions - Contains Functions that treat flights
  • routes - Contains the router of API (api.php)

Environment variables

  • .env - Environment variables can be set in this file

Note : You can get the POSTMAN collection here.


Testing 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}

Special Thanks:

To the 123 milhas team for it valueable challenge.

You might also like...
Releases(v1.0.0)
Owner
Higor Rocha
Higor Rocha
Mailing Microservice - My solution for Moroccan PHPers's February 2022 Challenge

Mailing Microservice Solution for Moroccan PHPers's February 2022 Challenge by Rabyâ Raghib ([email protected]). It mainly consists of: a php app th

Rabyâ Raghib 1 Aug 11, 2022
A challenge to develop frontend-backend forms and account creating.

Symfony + Vue (Back/Front) Helped and assisted by Vanessa and Paulo. This project have two sides, the back-end(Symfony) and the front-end(Vue.js) for

Rickelme Dias 1 Feb 10, 2022
A&D challenge for AIS3 EOF CTF 2022 Final.

A&D challenge for AIS3 EOF CTF 2022 Final.

ꌗᖘ꒒ꀤ꓄꒒ꀤꈤꍟ 5 Feb 28, 2022
Exploiting API to Shell challenge from Pentesterlab serialize badge.

API to Shell This exercise covers the exploitation of PHP type confusion to bypass a signature and the exploitation of unserialize. A weakness in a si

Jakom 4 Jul 15, 2022
My own implementation of the backend challenge.

Millions backend challenge My own implementation of the backend challenge. Implemented features Show posts paginated, and ordered by creation date wit

Mouad ZIANI 8 Jun 21, 2022
This Project is for digikala.com scrapping challenge of 2021 blackfriday using php/laravel/horizon

Objective This script is intended for finding the hidden treasure, A scraping challenge by digikala for 2021 black Friday Prerequisites Php mysql redi

ǃшɒʞɒH ǃǀɄ 1 Dec 22, 2021
Mailing Microservice - My solution for Moroccan PHPers's February 2022 Challenge

Mailing Microservice Solution for Moroccan PHPers's February 2022 Challenge by Rabyâ Raghib ([email protected]). It mainly consists of: a php app th

Rabyâ Raghib 1 Aug 11, 2022
A challenge to develop frontend-backend forms and account creating.

Symfony + Vue (Back/Front) Helped and assisted by Vanessa and Paulo. This project have two sides, the back-end(Symfony) and the front-end(Vue.js) for

Rickelme Dias 1 Feb 10, 2022
A&D challenge for AIS3 EOF CTF 2022 Final.

A&D challenge for AIS3 EOF CTF 2022 Final.

ꌗᖘ꒒ꀤ꓄꒒ꀤꈤꍟ 5 Feb 28, 2022
Tarfin Take-Home Coding Challenge

TarfinKart Problemi Bu problemin temel amacı, kodlama stilini ve seçimlerini belirleyebilmektir. TarfinKart Problemi benzeri görülmemiş bir çözüm geli

Tarfin 3 Jun 8, 2022