acoomans / flask-autodoc

Flask autodoc automatically creates an online documentation for your flask application.
MIT License
98 stars 49 forks source link

Question about Form Data #48

Open OsymandiasII opened 2 years ago

OsymandiasII commented 2 years ago

Hello

In the 2nd example picture (/doc/private) you have a Form Data section under the Description for the route /post. I checked the examples, but i can get it to work for me. I have a template with this

<div class="desc">
                Description : {{doc.docstring}}
</div>

that display the content of what i put between """ ... """ in my code, and in your example you do this :

 """Create a new post.
    Form Data: title, content, authorid.
    """

'Create a new post ' i corectly going in the description and 'Form Data' i going to form data, however when i do the same thing, both go into the description.

How did you manage to add the FormData rule ?

Thanks