Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support binary upload endpoint #1

Open
guillemcanal opened this issue Aug 8, 2016 · 0 comments
Open

Support binary upload endpoint #1

guillemcanal opened this issue Aug 8, 2016 · 0 comments

Comments

@guillemcanal
Copy link
Member

guillemcanal commented Aug 8, 2016

Given the following API definition:

swagger: '2.0'
info:
  version: 1.0.0
  title: Demo API
host: httpbin.org
schemes:
  - https
consumes:
  - application/json
produces:
  - application/json
paths:
  /post:
    post:
      summary: Upload file
      operationId: uploadFile
      consumes:
        - application/octet-stream
      parameters:
        - name: file
          in: body
          schema:
            type: string
            format: file
      responses:
        201:
          description: lol

Then we SHOULD support a filename or a stream for any given body parameters having schema.format = file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant