...

Text file src/github.com/go-openapi/spec/fixtures/more_circulars/spec3.json

Documentation: github.com/go-openapi/spec/fixtures/more_circulars

     1{
     2  "swagger": "2.0",
     3  "info": {
     4    "title": "Item API",
     5    "description": "Item API",
     6    "version": "1.0.0"
     7  },
     8  "host": "item.api.local",
     9  "basePath": "/v1",
    10  "securityDefinitions": {
    11    "key": {
    12      "type": "apiKey",
    13      "name": "x-item-token",
    14      "in": "header"
    15    }
    16  },
    17  "security": [
    18    {
    19      "key": []
    20    }
    21  ],
    22  "consumes": [
    23    "application/json"
    24  ],
    25  "produces": [
    26    "application/json"
    27  ],
    28  "schemes": [
    29    "http"
    30  ],
    31  "paths": {
    32    "/item": {
    33      "get": {
    34        "operationId": "GetItem",
    35        "responses": {
    36          "200": {
    37            "description": "item detail response",
    38            "schema": {
    39              "$ref": "#/definitions/myItems"
    40            }
    41          }
    42        }
    43      }
    44    }
    45  },
    46  "definitions": {
    47    "myItems": {
    48      "$ref": "item.json#/item"
    49    }
    50  }
    51}

View as plain text