Setup virtual environment and run command ./lrun.sh
curl http://127.0.0.1:5000/api/user/user_id
curl http://127.0.0.1:5000/api/user
curl -X POST http://localhost:5000/api/user -H "Content-Type: application/json" -d '{"username": "My name", "password":"mypassword_shhh", "email": "[email protected]"}'
curl -X PUT http://localhost:5000/api/user/user_id -H "Content-Type: application/json" -d '{"username": "My name", "password":"mypassword_shhh", "email": "[email protected]"}'
curl -X DELETE http://localhost:5000/api/user/user_id
curl http://127.0.0.1:5000/api/book/book_id
curl http://127.0.0.1:5000/api/book
curl -X POST http://localhost:5000/api/book -H "Content-Type: application/json" -d '{"name": "My Markus Book", "content": "This is my booooooook.", "path": "book.pdf", "cover": "cover.jpg", "authors": "Author"}'
curl -X PUT http://localhost:5000/api/book/book_id -H "Content-Type: application/json" -d '{"name": "New Book Name", "content": "content", "path": "path.pdf", "cover": "cover.jpg", "authors": "Author"}'
curl -X DELETE http://localhost:5000/api/book/book_id
curl http://127.0.0.1:5000/api/section/section_id
curl http://127.0.0.1:5000/api/section
curl -X POST http://localhost:5000/api/section -H "Content-Type: application/json" -d '{"name": "section", "description": "description", "dateCreated": "date"}'
curl -X PUT http://localhost:5000/api/section/section_id -H "Content-Type: application/json" -d '{"name": "new name", "description": "new description", "dateCreated": "new date"}'
curl -X DELETE http://localhost:5000/api/section/section_id
curl -X POST http://localhost:5000/api/book/book_id/section/section_id
ccurl -X DELETE http://localhost:5000/api/book/book_id/section/section_id