The frameworks to use are flask and flasgger which perform the following functions.
- Flask - service the api endpoint
- flasgger - document and test api endpoint using a nice UI.
there are two ways to add the documentation.
- Add the code in a dock string inside a function
- create a yaml file and add rhe documentation code then call the file
To Access the documentation type your url in the browser then slash apidocs.
- Example: http://127.0.0.1:5000/apidocs