Skip to content

gillybyte/Flask-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Flask API


Overview

This is a simple store API built with Flask, Flask-RESTful, Flask-JWT, and Flask-SQLAlchemy. It also uses the Heroku Postgres add-on as a database.

Live link: https://glaurent-python-flask-api.herokuapp.com/stores


Installation

Clone my repo:

git clone https://github.com/glaurent96/Flask-API.git

Demo

In order to demo the API, you first need to download Postman to send requests with a body to create a user and authenticate yourself. You will then have access to all the API endpoints.

Step 1: Register User alt text Step 2: Authenticate User alt text With this JWT access token you now have access to the locked get item by name endpoint listed below and can perform CRUD operations on items in the stores:

STORES: POST /store/: (Create a new store) alt text GET /store/: (Get a store by name) alt text DEL /store/: (Delete a store by name) alt text GET /stores: (Get a list of all the existing stores) alt text ITEMS: POST /item/: (Create a new item) alt text GET /item/: (Get an item by name) alt text PUT /item/: (Update an item by name) alt text DEL /item/: (Delete an item by name) alt text GET /items: (Get a list of all the existing items in the store) alt text

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages