Skip to content

Defining a file upload endpoint #476

@tiholic

Description

@tiholic

I'm trying to define an endpoint which is a pure file upload API and doesn't depend on a model

swagger ref: https://swagger.io/docs/specification/describing-request-body/file-upload/#multipart

Tried setting this, but seems like I'm missing something.

@extend_schema(
  request={
    'multipart/form-data': { 'schema': ... }  # similar to what's in the above link
  }
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfix confirmation pendingissue has been fixed and confirmation from issue reporter is pending

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions