github.com/circl-dev/go-swagger@v0.31.0/examples/tutorials/custom-server/swagger/swagger.yml (about)

     1  ---
     2  swagger: '2.0'
     3  info:
     4    version: 1.0.0
     5    title: Greeting Server
     6  paths:
     7    /hello:
     8      get:
     9        produces:
    10          - text/plain
    11        parameters:
    12          - name: name
    13            required: false
    14            type: string
    15            in: query
    16            description: defaults to World if not given
    17        operationId: getGreeting
    18        responses:
    19          200:
    20            description: returns a greeting
    21            schema:
    22                type: string
    23                description: contains the actual greeting as plain text