github.com/kaisawind/go-swagger@v0.19.0/examples/stream-server/restapi/embedded_spec.go (about)

     1  // Code generated by go-swagger; DO NOT EDIT.
     2  
     3  package restapi
     4  
     5  // This file was generated by the swagger tool.
     6  // Editing this file might prove futile when you re-run the swagger generate command
     7  
     8  import (
     9  	"encoding/json"
    10  )
    11  
    12  var (
    13  	// SwaggerJSON embedded version of the swagger document used at generation time
    14  	SwaggerJSON json.RawMessage
    15  	// FlatSwaggerJSON embedded flattened version of the swagger document used at generation time
    16  	FlatSwaggerJSON json.RawMessage
    17  )
    18  
    19  func init() {
    20  	SwaggerJSON = json.RawMessage([]byte(`{
    21    "consumes": [
    22      "application/json"
    23    ],
    24    "produces": [
    25      "application/json"
    26    ],
    27    "schemes": [
    28      "http"
    29    ],
    30    "swagger": "2.0",
    31    "info": {
    32      "description": "Example server for emitting newline delimited JSON",
    33      "title": "Countdown",
    34      "version": "1.0.0"
    35    },
    36    "basePath": "/",
    37    "paths": {
    38      "/elapse/{length}": {
    39        "get": {
    40          "description": "Count down the seconds remaining",
    41          "summary": "Count down the number of seconds",
    42          "operationId": "elapse",
    43          "parameters": [
    44            {
    45              "maximum": 30,
    46              "minimum": 2,
    47              "type": "integer",
    48              "description": "How many seconds to count down",
    49              "name": "length",
    50              "in": "path",
    51              "required": true
    52            }
    53          ],
    54          "responses": {
    55            "200": {
    56              "description": "Secondly update on remaining time",
    57              "schema": {
    58                "type": "string",
    59                "format": "binary"
    60              }
    61            },
    62            "403": {
    63              "description": "Contrived - thrown when length of 11 is chosen"
    64            }
    65          }
    66        }
    67      }
    68    },
    69    "definitions": {
    70      "Mark": {
    71        "type": "object",
    72        "required": [
    73          "remains"
    74        ],
    75        "properties": {
    76          "remains": {
    77            "type": "integer"
    78          }
    79        }
    80      }
    81    }
    82  }`))
    83  	FlatSwaggerJSON = json.RawMessage([]byte(`{
    84    "consumes": [
    85      "application/json"
    86    ],
    87    "produces": [
    88      "application/json"
    89    ],
    90    "schemes": [
    91      "http"
    92    ],
    93    "swagger": "2.0",
    94    "info": {
    95      "description": "Example server for emitting newline delimited JSON",
    96      "title": "Countdown",
    97      "version": "1.0.0"
    98    },
    99    "basePath": "/",
   100    "paths": {
   101      "/elapse/{length}": {
   102        "get": {
   103          "description": "Count down the seconds remaining",
   104          "summary": "Count down the number of seconds",
   105          "operationId": "elapse",
   106          "parameters": [
   107            {
   108              "maximum": 30,
   109              "minimum": 2,
   110              "type": "integer",
   111              "description": "How many seconds to count down",
   112              "name": "length",
   113              "in": "path",
   114              "required": true
   115            }
   116          ],
   117          "responses": {
   118            "200": {
   119              "description": "Secondly update on remaining time",
   120              "schema": {
   121                "type": "string",
   122                "format": "binary"
   123              }
   124            },
   125            "403": {
   126              "description": "Contrived - thrown when length of 11 is chosen"
   127            }
   128          }
   129        }
   130      }
   131    },
   132    "definitions": {
   133      "Mark": {
   134        "type": "object",
   135        "required": [
   136          "remains"
   137        ],
   138        "properties": {
   139          "remains": {
   140            "type": "integer"
   141          }
   142        }
   143      }
   144    }
   145  }`))
   146  }