The API allows developers to search for books by book id to retrieve detailed information about each book. The API also allows developers to edit the books and save them to the database.
- Get all books
- Search book
- Update book
- Create book
- Delete book
Creating virtual environment
py -m pip install --upgrade pip
py -m pip install --user virtualenv
py -m venv env
Activating virtual environment
.\env\Scripts\activate
install requirements
pip3 install -r requirements.txt
Run main.py
python main.py
GET /getAllBooks
GET /getBook
Parameter | Type | Description |
---|---|---|
bookId |
int |
Required. Id of the book |
GET /deleteBook
Parameter | Type | Description |
---|---|---|
bookId |
int |
Required. Id of the book |
GET /createBook
Parameter | Type | Description |
---|---|---|
bookName |
string |
Required. Name of the book |
bookAuthor |
string |
Required. Name of the book author |
publication |
string |
Required. Publication year |
GET /createBook
Parameter | Type | Description |
---|---|---|
bookId |
string |
Required. Name of the book |
bookName |
string |
Name of the book |
bookAuthor |
string |
Name of the book author |
publication |
string |
Publication year |