In this recipe, we will convert the API structure created in the last recipe, Creating an extension-based REST interface, into a full-fledged RESTful API.
Creating a complete RESTful API
Getting ready
We will take the API skeleton from the last recipe as a basis for creating a complete functional SQLAlchemy-independent RESTful API. Although we will use SQLAlchemy as the ORM for demonstration purposes, this recipe can be written in a similar fashion for any ORM or underlying database.
How to do it...
The following lines of code are the complete RESTful API for the Product...