REST API using Python and Flask

Explain project here

... and here

API Endpoints

Stores

Method Endpoint Description
GET /store Get a list of all stores.
POST /store Create a store.
GET /store/{id} Get a single store, given its unique id.
DELETE /store/{id} Delete a store, given its unique id.

Items

Method Endpoint Description
GET /item Get a list of all items in all stores.
POST /item Create a new item, given its name and price in the body of thhe request.
PUT /item/{id} Get information about a specific item, given its unique id.
GET /item/{id} Update an item given its unique id.
DELETE /item/{id} Delete an item given its unique id.

Tags

Method Endpoint Description
GET /store/{id}/tag Get a list of tags in a store.
POST /store/{id}/tag Create a new tag.
POST /item/{id}/tag/{id} Link an item in a store with a tag from the same store.
DELETE /item/{id}/tag/{id} Unlink a tag from an item.
GET /tag/{id}} Get information about a tag given its unique id.
DELETE /tag/{id} Delete a tag, which must have no associated items.

Users

Method Endpoint Description
POST /register Create user accounts given an email and password.
POST /login Get a JWT given an email and password.
POST /logout Get a JWT given an email and password.
POST /refresh Get a fresh JWT given a refresh JWT.
GET /user/{user_id} (dev-only) Get info about a user given their ID.
DELETE /user/{user_id} (dev-only) Delete a user given their ID.