Challenge proposed by Jumia
*tested on docker version (Docker version 20.10.5, build 55c4c88)
- first of all build and start container
$ docker-compose up -d
Run tests using
docker-compose exec app php artisan test
set Accept as application/json
-endpoints (should create in swagger)
http://localhost:8000/api/jobs (get)
http://localhost:8000/api/jobs (post)
*post parameters {"title": "Programer","description": "Solve problems"}
- env file should not be here
- should add authentication to api
- add api documentation like swagger for example
- force return response as json
- would be good have producer and consumer in differents ms
- real integration to send sms and email