Skip to content

A simplified CRUD for a middleware REST API with Python without database interaction.

Notifications You must be signed in to change notification settings

stauffenger/simple_rest_api_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API with Python

A REST API that works like a middleware for a library API, receiving a title and author and converting to a hash value to interact with the library API.

What to expect?

This API will be built with python and the flask-restful, an extension of the framework flask, with the intention of showing the basic functionality of a REST API with python and how to use hash as an identification. Initially the API doesn't have the intention of demonstrate an interaction with any database, so this API will work like a simple middleware between a service that doesn't understand hash and a API that use hash as an items identification.

How will the API work?

It'll format the data to pass for the library API.

Services provided(path)

Books insert/update model

{
    "title": "book title",
    "author": "author name",
    "description": "short book description"
}

How to start the project

$ phyton app.py

or

$ flask run

Dependencies

  • flask
  • flask-restful
  • flask-cors
  • json
  • werkzeug.exceptions
  • hashlib

References

About

A simplified CRUD for a middleware REST API with Python without database interaction.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages