Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swagger: '2.0'
- info:
- description: 'This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.'
- version: 1.0.6
- title: Swagger Petstore
- termsOfService: http://swagger.io/terms/
- contact:
- license:
- name: Apache 2.0
- url: http://www.apache.org/licenses/LICENSE-2.0.html
- host: petstore.swagger.io
- basePath: /v2
- tags:
- - name: pet
- description: Everything about your Pets
- externalDocs:
- description: Find out more
- url: http://swagger.io
- schemes:
- - https
- - http
- paths:
- /pet/{petId}/uploadImage:
- post:
- tags:
- - pet
- summary: uploads an image
- description: ''
- operationId: uploadFile
- consumes:
- - multipart/form-data
- produces:
- - application/json
- parameters:
- - name: petId
- in: path
- description: ID of pet to update
- required: true
- type: integer
- format: int64
- - name: additionalMetadata
- in: formData
- description: Additional data to pass to server
- required: false
- type: string
- - name: file
- in: formData
- description: file to upload
- required: false
- type: file
- - name: multi_files
- in: formData
- type: array
- items:
- type: string
- format: binary
- responses:
- '200':
- description: successful operation
- schema:
- $ref: '#/definitions/ApiResponse'
- definitions:
- ApiResponse:
- type: object
- properties:
- code:
- type: integer
- format: int32
- type:
- type: string
- message:
- type: string
- externalDocs:
- description: Find out more about Swagger
- url: http://swagger.io
Advertisement
Add Comment
Please, Sign In to add comment