github.com/circl-dev/go-swagger@v0.31.0/examples/tutorials/todo-list/server-1/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/io.goswagger.examples.todo-list.v1+json" 23 ], 24 "produces": [ 25 "application/io.goswagger.examples.todo-list.v1+json" 26 ], 27 "schemes": [ 28 "http" 29 ], 30 "swagger": "2.0", 31 "info": { 32 "description": "The product of a tutorial on goswagger.io", 33 "title": "A To Do list application", 34 "version": "1.0.0" 35 }, 36 "paths": { 37 "/": { 38 "get": { 39 "tags": [ 40 "todos" 41 ], 42 "operationId": "findTodos", 43 "parameters": [ 44 { 45 "type": "integer", 46 "format": "int64", 47 "name": "since", 48 "in": "query" 49 }, 50 { 51 "type": "integer", 52 "format": "int32", 53 "default": 20, 54 "name": "limit", 55 "in": "query" 56 } 57 ], 58 "responses": { 59 "200": { 60 "description": "list the todo operations", 61 "schema": { 62 "type": "array", 63 "items": { 64 "$ref": "#/definitions/item" 65 } 66 } 67 }, 68 "default": { 69 "description": "generic error response", 70 "schema": { 71 "$ref": "#/definitions/error" 72 } 73 } 74 } 75 } 76 } 77 }, 78 "definitions": { 79 "error": { 80 "type": "object", 81 "required": [ 82 "message" 83 ], 84 "properties": { 85 "code": { 86 "type": "integer", 87 "format": "int64" 88 }, 89 "message": { 90 "type": "string" 91 } 92 } 93 }, 94 "item": { 95 "type": "object", 96 "required": [ 97 "description" 98 ], 99 "properties": { 100 "completed": { 101 "type": "boolean" 102 }, 103 "description": { 104 "type": "string", 105 "minLength": 1 106 }, 107 "id": { 108 "type": "integer", 109 "format": "int64", 110 "readOnly": true 111 } 112 } 113 } 114 } 115 }`)) 116 FlatSwaggerJSON = json.RawMessage([]byte(`{ 117 "consumes": [ 118 "application/io.goswagger.examples.todo-list.v1+json" 119 ], 120 "produces": [ 121 "application/io.goswagger.examples.todo-list.v1+json" 122 ], 123 "schemes": [ 124 "http" 125 ], 126 "swagger": "2.0", 127 "info": { 128 "description": "The product of a tutorial on goswagger.io", 129 "title": "A To Do list application", 130 "version": "1.0.0" 131 }, 132 "paths": { 133 "/": { 134 "get": { 135 "tags": [ 136 "todos" 137 ], 138 "operationId": "findTodos", 139 "parameters": [ 140 { 141 "type": "integer", 142 "format": "int64", 143 "name": "since", 144 "in": "query" 145 }, 146 { 147 "type": "integer", 148 "format": "int32", 149 "default": 20, 150 "name": "limit", 151 "in": "query" 152 } 153 ], 154 "responses": { 155 "200": { 156 "description": "list the todo operations", 157 "schema": { 158 "type": "array", 159 "items": { 160 "$ref": "#/definitions/item" 161 } 162 } 163 }, 164 "default": { 165 "description": "generic error response", 166 "schema": { 167 "$ref": "#/definitions/error" 168 } 169 } 170 } 171 } 172 } 173 }, 174 "definitions": { 175 "error": { 176 "type": "object", 177 "required": [ 178 "message" 179 ], 180 "properties": { 181 "code": { 182 "type": "integer", 183 "format": "int64" 184 }, 185 "message": { 186 "type": "string" 187 } 188 } 189 }, 190 "item": { 191 "type": "object", 192 "required": [ 193 "description" 194 ], 195 "properties": { 196 "completed": { 197 "type": "boolean" 198 }, 199 "description": { 200 "type": "string", 201 "minLength": 1 202 }, 203 "id": { 204 "type": "integer", 205 "format": "int64", 206 "readOnly": true 207 } 208 } 209 } 210 } 211 }`)) 212 }