- php>=7.3
- composer>=2.0.8
- Docker
- git clone https://github.com/BrenoLopez/challenge-mobix.git
- composer install
- If you are running on linux run command cp .env.example .env otherwise copy file .env.example and, create new .env file and paste
- php artisan key:generate
- php artisan serve
- sudo docker-compose build app
- sudo docker-compose up -d
- sudo docker-compose exec app composer install
- sudo docker-compose exec app php artisan key:generate
resource | description |
---|---|
/main-character/book/{id} | returns the main characters details of the ice and fire chronicle |
/character-details?characters={characters,...}&detail={detail} | returns detail of one or more characters |
/book-cover?isbn={isbn,...} | returns an array of base64 images from one or more books via isbn |
/book-by-character/{id} | returns all books related to a character |