python - Commenting style guide for restful apis in django / flask -


is there de-facto commenting style restful api classes or functions? if there's no such, how apply google / sphinx commenting style rest apis?

for example, how write comment for

class mylistapi(apiview):     def get(self, request, **kwargs):         ... 

if api takes query string parameters?

you can check out swagger extension flask or django

swagger can generate html page docs , testing.

you can at:


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -