Closed TobKra96 closed 3 years ago
My implementation suggestion is to use Flasgger.
In webserver.py we initialize a Swagger instance from the flask app:
webserver.py
from flasgger import Swagger Swagger(self.server)
And add a docstring to all API endpoint functions, like the followng example:
""" Returns a dictionary of logging levels. --- tags: - Settings responses: 200: description: OK schema: type: object, example: { critical: str, debug: str, error: str, info: str, notset: str, warning: str } """
Hi,
I reviewed the new API docu. Nice job 👍 Here are some questions:
Have a great day, TobKra
Done
My implementation suggestion is to use Flasgger.
In
webserver.py
we initialize a Swagger instance from the flask app:And add a docstring to all API endpoint functions, like the followng example: