github.com/djarvur/go-swagger@v0.18.0/examples/tutorials/todo-list/server-1/swagger.yml (about)

     1  swagger: "2.0"
     2  info:
     3    description: The product of a tutorial on goswagger.io
     4    title: A To Do list application
     5    version: 1.0.0
     6  consumes:
     7  - application/io.goswagger.examples.todo-list.v1+json
     8  produces:
     9  - application/io.goswagger.examples.todo-list.v1+json
    10  schemes:
    11  - http
    12  paths:
    13    /:
    14      get:
    15        tags:
    16          - todos
    17        operationId: findTodos
    18        parameters:
    19          - name: since
    20            in: query
    21            type: integer
    22            format: int64
    23          - name: limit
    24            in: query
    25            type: integer
    26            format: int32
    27            default: 20
    28        responses:
    29          200:
    30            description: list the todo operations
    31            schema:
    32              type: array
    33              items:
    34                $ref: "#/definitions/item"
    35          default:
    36            description: generic error response
    37            schema:
    38              $ref: "#/definitions/error"
    39  definitions:
    40    item:
    41      type: object
    42      required:
    43        - description
    44      properties:
    45        id:
    46          type: integer
    47          format: int64
    48          readOnly: true
    49        description:
    50          type: string
    51          minLength: 1
    52        completed:
    53          type: boolean
    54    error:
    55      type: object
    56      required:
    57        - message
    58      properties:
    59        code:
    60          type: integer
    61          format: int64
    62        message:
    63          type: string