python - How to add descriptions of parameters in Django Documentation? -


i add descriptions of parameters in django documentation. trying in way shown below, doesn't work. suggestions?

    @permission_classes([userpermission])     class objectbyid(genericapiview):          """         get: return object id.         put: update object id.         delete: delete object id.         parameters:           object_id - parameter description.         """          serializer_class = objectserializer          def get(self, request, object_id):              try:                 object = object.objects.get(id= object_id)             except object.doesnotexist:                 return response(status=status.http_404_not_found)             serializer = objectserializer(object)             return response(serializer.data)  ... 


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -