github.com/Axway/agent-sdk@v1.1.101/pkg/apic/testdata/petstore-swagger2.yaml (about)

     1  swagger: "2.0"
     2  info:
     3    version: 1.0.0
     4    title: Swagger Petstore
     5    license:
     6      name: MIT
     7  host: petstore.swagger.io
     8  basePath: /v1
     9  schemes:
    10    - http
    11  consumes:
    12    - application/json
    13  produces:
    14    - application/json
    15  paths:
    16    /pets:
    17      get:
    18        summary: List all pets
    19        operationId: listPets
    20        tags:
    21          - pets
    22        parameters:
    23          - name: limit
    24            in: query
    25            description: How many items to return at one time (max 100)
    26            required: false
    27            type: integer
    28            format: int32
    29        responses:
    30          "200":
    31            description: A paged array of pets
    32            headers:
    33              x-next:
    34                type: string
    35                description: A link to the next page of responses
    36            schema:
    37              $ref: "#/definitions/Pets"
    38          default:
    39            description: unexpected error
    40            schema:
    41              $ref: "#/definitions/Error"
    42      post:
    43        summary: Create a pet
    44        operationId: createPets
    45        tags:
    46          - pets
    47        responses:
    48          "201":
    49            description: Null response
    50          default:
    51            description: unexpected error
    52            schema:
    53              $ref: "#/definitions/Error"
    54    /pets/{petId}:
    55      get:
    56        summary: Info for a specific pet
    57        operationId: showPetById
    58        tags:
    59          - pets
    60        parameters:
    61          - name: petId
    62            in: path
    63            required: true
    64            description: The id of the pet to retrieve
    65            type: string
    66        responses:
    67          "200":
    68            description: Expected response to a valid request
    69            schema:
    70              $ref: "#/definitions/Pets"
    71          default:
    72            description: unexpected error
    73            schema:
    74              $ref: "#/definitions/Error"
    75  definitions:
    76    Pet:
    77      type: "object"
    78      required:
    79        - id
    80        - name
    81      properties:
    82        id:
    83          type: integer
    84          format: int64
    85        name:
    86          type: string
    87        tag:
    88          type: string
    89    Pets:
    90      type: array
    91      items:
    92        $ref: "#/definitions/Pet"
    93    Error:
    94      type: "object"
    95      required:
    96        - code
    97        - message
    98      properties:
    99        code:
   100          type: integer
   101          format: int32
   102        message:
   103          type: string