github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/628/swagger.yml (about)

     1  swagger: '2.0'
     2  
     3  info:
     4    version: "1.0.0"
     5    title: Private to-do list
     6    description: |
     7      A very simple api description that makes a json only API to submit to do's.
     8  
     9  produces:
    10    - application/json
    11  
    12  consumes:
    13    - application/json
    14  
    15  paths:
    16    /collection:
    17      get:
    18        operationId: collection
    19        parameters:
    20          - name: "workspace_id"
    21            in: "query"
    22            required: true
    23            type: "array"
    24            items:
    25              type: "string"
    26              format: "uuid"
    27        responses:
    28          '200':
    29            description: returns single item
    30            headers:
    31              'X-Request-Id':
    32                required: true
    33                type: "array"
    34                items:
    35                  type: "string"
    36                  format: "uuid"
    37    /single:
    38      get:
    39        operationId: single
    40        parameters:
    41          - name: "workspace_id"
    42            in: "query"
    43            required: true
    44            type: "string"
    45            format: "uuid"
    46        responses:
    47          '200':
    48            description: returns single item
    49            headers:
    50              'X-Request-Id':
    51                type: string
    52                required: true
    53                format: uuid
    54    /{id}:
    55      get:
    56        operationId: details
    57        parameters:
    58          - name: "id"
    59            in: "path"
    60            required: true
    61            type: "string"
    62            format: "uuid"
    63  
    64  definitions:
    65    genericResource:
    66      description: generic resource
    67      properties:
    68        meta:
    69          type: string
    70      required:
    71        - meta
    72      additionalProperties:
    73        type: object