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.
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.
It'll format the data to pass for the library API.
- Books('http://localhost:5000/books/'):
- Register new book
- Get all books
- A specific book('http://localhost:5000/book/author-name-separated-with-hyphen/title-separated-with-hyphen/'):
- Update
- Get
- Delete
{
"title": "book title",
"author": "author name",
"description": "short book description"
}
$ phyton app.py
or
$ flask run
- flask
- flask-restful
- flask-cors
- json
- werkzeug.exceptions
- hashlib