Book-API is a rest API to list book collection
Resources available in this API:
- Books
List of book collection. It provides information about title and author of the book, as well as the reading status of the book, read it or unread it.
- Book
Information of a specific book referenced by its id
- Install Python3.8
Get the project running in just 3 quick steps.
-
For this repository and clone to your local machine. Then cd into the project
git clone https://github.com/alucardthefish/bookapi.git cd bookapi
-
Create your virtual environment, and activate it.
python -m venv env source env/bin/activate # Linux/Mac env\Scripts\activate # Windows
-
Install dependencies
pip install -r requirements.txt
You just need to run the server by executing the script main.py
python main.py
Go the api url to call the available endpoints
http://localhost:5000/api/