/Hello-Books-Flask-API

This repository contains Flask API endpoints and tests for the Hello-World Application.

Primary LanguageHTML

Hello-Books-Flask-API

Build Status Coverage Status Maintainability

This repository contains Flask API endpoints and tests for the Hello-World Application.

Runnning Application

Clone Repo From GitHub

git clone https://github.com/brandeddavid/Hello-Books-Flask-API.git

Enter Directory

cd Hello-Books-Flask-API

Create Virtual Environment

virtualenv -p python3 venv

Start virtualenv

source venv/bin/activate

Install Dependencies

pip install -r requrements.txt

Run app

python run.py

Available API Endpoints

Endpoint Description
POST /api/v1/books Adds a New Book
PUT /api/v1/books/string:bookId Edits Individal Book Info
DELETE /api/v1/books/string:bookId Deletes A Book
GET /api/v1/books Retrieves All Books
GET /api/v1/books/<string: bookId> Get Book by id
POST /api/v1/users/books/<string: bookId> Borrow a book
POST /api/v1/auth/register Register a New User
POST /api/v1/users Gets all Users
POST /api/v1/auth/login Logs in a registered User
POST /api/v1/auth/logout Logs Out a Logged in

API Endpoints Documentation

Find API endpoints documentation here

Testing API Endpoints

Use Postman and the provided documentation to test the API endpoints

Project Owner

David Mwangi Mathenge

david.mathenge98@gmail.com