/api_books

This application consists of a web service with an endpoint that receives a request and returns requested data about the author of books and a webapp to consult the information about the author by entering the name in the application.

Primary LanguagePython

API Books

Description

This application consists of a web service with an endpoint that receives a request
and returns requested data about the author of books and a webapp to consult the information
about the author by entering the name in the application.

Enviroment:

Backend:

  • Python
  • Django
  • Dajngo-rest-framework s

Frontend:

  • HTML5
  • Boostrap

This project was developed in a virtual environment using virtualenv with python 3.8.5

For testing purposes, I suggest using virtualenv and installing the necessary libraries using the requirements.txt file.

To test the web service:

Once the server is up using postman, you can make a GET request to the endpoint
with the name of the author to consult using the following format:

{
   "author": "garcia marquez"
}
   

You should receive a JSON with the information of the query or with the status code if the query fails.

To test the webApp:

In the browser enter the following link :

http://127.0.0.1:8000/qbooks/

Use the form to consult by entering the name of the author

In the webapp a table will be displayed with the author's books or books about the consulted author.

Author: