Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.22 KB

README.md

File metadata and controls

39 lines (34 loc) · 1.22 KB

Book-library-backend

This API(Application Programming Interface) allows books and files in pdf format to be stored and accessed by authenticated users

- Snapshot of Swagger Documentation

Screenshot (234)

Endpoints

  • GET /books/- Get all books added
  • GET /book/{id}- Get books added by id
  • POST /book/- Add new book
  • POST /login/ - Logs in signed up user
  • POST /logout/ - Deletes token in session of an authenticated user
  • POST /logout-all/ - Deletes all tokens from previous sessions for an authenticated user
  • POST /signup/ - Register user to database

Run on your local machine

Open up your terminal, follow these steps below:

git clone https://github.com/seyiadel/book-library-backend.git

Change the directory to book-library-backend

cd book-library-backend

Install the dependecies from requirements.txt

pip install -r requirements.txt 

Run the development server

python manage.py runserver

Voila!, You have the project running on your local machine, Check and test the documentation

127.0.0.1:8000/docs/

where :8000 is your port number!