github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1767/fixture-1767.yaml (about)

     1  ---
     2  swagger: '2.0'
     3  info:
     4    version: "1.0.0"
     5    title: FHIR API
     6    description: |
     7      #### FHIR API
     8  schemes:
     9  - http
    10  host: "fhir.test.lan"
    11  basePath: /
    12  
    13  parameters:
    14    patientID:
    15      name: patientID
    16      in: path
    17      description: "patient ID"
    18      type: string
    19      required: true
    20  
    21  paths:
    22    /Patient/{patientID}:
    23      parameters:
    24      - $ref: "#/parameters/patientID"
    25      get:
    26        tags:
    27        - fhir
    28        produces:
    29        - application/fhir+json
    30        consumes:
    31        - application/fhir+json
    32        responses:
    33          200:
    34            $ref: "#/responses/Patient"
    35      put:
    36        tags:
    37        - fhir
    38        produces:
    39        - application/fhir+json
    40        consumes:
    41        - application/fhir+json
    42        responses:
    43          200:
    44            $ref: "#/responses/Patient"
    45  
    46  responses:
    47    Patient:
    48      description: "Patient"
    49      schema:
    50        allOf:
    51        - $ref: 'Patient.yaml'