github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/examples/file-server/swagger.yml (about)

     1  swagger: "2.0"
     2  info:
     3    description: Example server uploading a file
     4    version: "1.0.0"
     5    title: File Upload
     6  basePath: /
     7  schemes:
     8    - http
     9  consumes:
    10    - application/json
    11  produces:
    12    - application/json
    13  
    14  paths:
    15    /upload:
    16      post:
    17        tags:
    18        - uploads
    19        summary: uploads
    20        operationId: uploadFile
    21        consumes:
    22        - multipart/form-data
    23        parameters:
    24        - name: file
    25          in: formData
    26          type: file
    27          required: true
    28        responses:
    29          "200":
    30            description: OK