- GET http://localhost:9134/api/external-books?name=:nameOfABook
- POST http://localhost:9134/api/v1/books
- GET http://localhost:9134/api/v1/books
- PATCH http://localhost:9134/api/v1/books/:id
- DELETE http://localhost:9134/api/v1/books/:id
- GET http://localhost:9134/api/v1/books/:id
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them
- Docker: Install this is the container required to run an instance and its dependencies.
- Docker Compose: Install Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services
- Clone the repository via ssh/http.
- From the Root folder run below commands in order
docker-compose build book_web
(To Build the docker images)docker-compose up book_web
(To start the application with all its dependencies and Meta data created)docker-compose down --remove-orphans
(To Stop the application and remove all the containers)
Hit http:localhost:9134/
with all the API routes.
You can now proceed to test the APIs using Postman or implement new features.
To run the automated tests for this system, follow the instructions below:
docker-compose exec book_web bash
(to enter into the shell of the backend container started above)pytest
(From the command line run the pytests)
To check test coverage report, follow the instructions below:
pytest --cov=book --disable-pytest-warnings