Skip to content

huberts90/vm-pl-books-manager

Repository files navigation

vm.pl book-manager PoC

Help

make help

Run

make start (for the first time it )
make stop

Tests

make tests

ENV

  • please create .env and .env.test based on .env.example

API

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/

GUI

  1. Simple book list: http://localhost:8000/

Known issues

  • problem with penetrating DB for app & tests
  • in case of problem with missing DB table, please restart containers with make stop & make start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published