To help you to definitely carry out these adjustment, the swagger.yml document from parts 1 must be modified

To help you to definitely carry out these adjustment, the swagger.yml document from parts 1 must be modified

Here’s just what earlier code does:

Outlines 1 – 9 import some Flask modules to generate others API reactions, together with importing the db case from the config.py component. And also, they imports the SQLAlchemy people and Marshmallow PersonSchema sessions to view the individual database table and serialize the results.

Range 11 begins the definition of read_all() that reacts towards OTHERS API Address endpoint attain /api/people and comes back every documents into the person databases dining table arranged in ascending order by latest identity. Continue reading “To help you to definitely carry out these adjustment, the swagger.yml document from parts 1 must be modified”