github.com/kaisawind/go-swagger@v0.19.0/fixtures/codegen/sodabooths.json (about)

     1  {
     2      "host": "localhost",
     3      "schemes": ["https"],
     4      "swagger": "2.0",
     5      "produces": ["application/json"],
     6      "consumes": ["application/json"],
     7      "info": {
     8          "title": "Soda Booth",
     9          "version": "2.0"
    10      },
    11      "paths": {
    12          "/v2/locations/{location_id}/transactions": {
    13              "get": {
    14                  "summary": "Sodas",
    15                  "tags": ["Sodas"],
    16                  "description": "Lists sodas for a particular location.",
    17                  "parameters": [
    18                      {
    19                          "name": "Authorization",
    20                          "required": true,
    21                          "type": "string",
    22                          "in": "header"
    23                      },
    24                      {
    25                          "name": "location_id",
    26                          "required": true,
    27                          "type": "string",
    28                          "in": "path"
    29                      }
    30                  ],
    31                  "responses": {"200": {
    32                      "schema": {"$ref": "#/definitions/Soda"},
    33                      "description": "Success"
    34                  }},
    35                  "operationId": "List"
    36              }
    37          }
    38      },
    39      "definitions": {
    40          "SodaBrand": {
    41              "description": "Some top level description",
    42              "enum": [
    43                  "OTHER_BRAND",
    44                  "PEPSI",
    45                  "COKE",
    46                  "CACTUS_COOLER",
    47                  "JOLT"
    48              ],
    49              "type": "string"
    50          },
    51          "Soda": {
    52              "description": "The brand in here is a different enum than the one above",
    53              "properties": {
    54                  "brand": {
    55                      "enum": [
    56                          "YUM_FOODS",
    57                          "MARS"
    58                      ],
    59                      "type": "string"
    60                  }
    61              },
    62              "type": "object"
    63          }
    64      }
    65  }