简体   繁体   中英

How to add method description in Swagger UI in PyCharm with Flask-RESTX

I am using Swagger as my API tooling framework and I just found this page: https://petstore.swagger.io/ and saw how each method has a description.

For example: POST: pet/ is described by add a new Pet to the store .

I thought adding this kind of description in PyCharm, using Flask-RESTX. How can I do this? I read the specification page of RESTX, but I didn't find any useful help.

You should have a swagger.yml.

summary: <your description here>

Basic Structure

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM