HTTP REST API and hybrid application to provide industrial harards inspectors an easy way to collect the information about establishments and inspection being conducted.
For a REST service you do not need Flask-Login. Typically in web services you do not store client state (what Flask-Login does), instead you authenticate each and every request. Flask-HTTPAuth does this for you.
You would use both only if you have an application that has a web component and a REST API component. In that case Flask-Login will handle the web app routes, and Flask-HTTPAuth will handle the API routes.
By defaul returns all records, but can be filtered by name /api/establishment?name=value aor oib /api/establishment?oib=value
Lists basic metadata as inspection date and inspector full name. In addition specific inspections metadata are provided if any created as described below.
It used to get information for specific inspection creation
curl -X POST -H "Content-Type: application/json" -d @data/insertinspection.json -u username:password
curl -X POST -H "Content-Type: application/json" -d @data/updateinspection.json -u username:password