Skip to content

Feature Request: generateschema should parse query string parameters in Docstring #7213

@rpaknahad

Description

@rpaknahad

Using DRF`s generateschema command, Docstring inline documentations are automatically parsed, but there is no way to add extra query parameters or document existing parameters inside that Docstring.
Here is an example:

@action(detail=False, methods=['post'])
def add(self, request):
  """
  Adds a new account
  parameters:
  - in: query
    name: service_id
    type: string
    required: true
    description: Identifier of the service
"""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions