Commenting style guide for restful apis in django / flask

Question:

Is there any de-facto commenting style for restful api classes or functions? If there’s no such, then how do I apply google / sphinx commenting style to rest apis?

For example, how do I write comment for

class MyListAPI(APIView):
    def get(self, request, **kwargs):
        ...

if the api takes some query string parameters?

Asked By: June

||

Answers:

Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.