make help
make start (for the first time it )
make stop
make tests
- please create
.env
and.env.test
based on.env.example
1.Add book
curl -H "Content-Type: application/json" -X POST -d '{"name":"adventure","category":"non-fiction"}' http://localhost:8000/api/books/
2.Update book
curl -H "Content-Type: application/json" -X PUT -d '{"category":"adventure_novel"}' http://localhost:8000/api/books/1/
3.Get book
curl -H "Content-Type: application/json" -X GET http://localhost:8000/api/books/1/
4.Get books
curl -H "Content-Type: application/json" -X GET http://localhost:8000/api/books/
5.Delete book
curl -H "Content-Type: application/json" -X DELETE http://localhost:8000/api/books/1/
- Simple book list:
http://localhost:8000/
- problem with penetrating DB for app & tests
- in case of problem with missing DB table, please
restart
containers withmake stop & make start