It is my opinion that this extension is well positioned to enable self-documenting API routes, and I have a Proof of Concept up on my fork of this repository - combined with docs.py (Flask Blueprint) and docs.html (Jinja2 Template) from SelfDoc.zip
you should be able to see good results.
Usage:
@ValidateParameters(fn_list=a_global_list)
def route_function(
param_name: type = Parameter(comment="Comment on Parameter")
):
"""Comment on Route"""
pass
Let me know if this should be pursued further and polished up, or if you'd prefer to leave such functionality out.
It is my opinion that this extension is well positioned to enable self-documenting API routes, and I have a Proof of Concept up on my fork of this repository - combined with
docs.py
(Flask Blueprint) anddocs.html
(Jinja2 Template) from SelfDoc.zip you should be able to see good results.Usage:
Let me know if this should be pursued further and polished up, or if you'd prefer to leave such functionality out.
Regards, Seth