1{ 2 "swagger": "2.0", 3 "info": { 4 "title": "examples/proto/examplepb/wrappers.proto", 5 "version": "version not set" 6 }, 7 "schemes": [ 8 "http", 9 "https" 10 ], 11 "consumes": [ 12 "application/json" 13 ], 14 "produces": [ 15 "application/json" 16 ], 17 "paths": { 18 "/v1/example/wrappers": { 19 "post": { 20 "operationId": "Create", 21 "responses": { 22 "200": { 23 "description": "A successful response.", 24 "schema": { 25 "$ref": "#/definitions/examplepbWrappers" 26 } 27 } 28 }, 29 "parameters": [ 30 { 31 "name": "body", 32 "in": "body", 33 "required": true, 34 "schema": { 35 "$ref": "#/definitions/examplepbWrappers" 36 } 37 } 38 ], 39 "tags": [ 40 "WrappersService" 41 ] 42 } 43 }, 44 "/v1/testBool": { 45 "post": { 46 "operationId": "CreateBoolValue", 47 "responses": { 48 "200": { 49 "description": "A successful response.", 50 "schema": { 51 "type": "boolean", 52 "format": "boolean" 53 } 54 } 55 }, 56 "parameters": [ 57 { 58 "name": "body", 59 "in": "body", 60 "required": true, 61 "schema": { 62 "type": "boolean", 63 "format": "boolean" 64 } 65 } 66 ], 67 "tags": [ 68 "WrappersService" 69 ] 70 } 71 }, 72 "/v1/testBytes": { 73 "post": { 74 "operationId": "CreateBytesValue", 75 "responses": { 76 "200": { 77 "description": "A successful response.", 78 "schema": { 79 "type": "string", 80 "format": "byte" 81 } 82 } 83 }, 84 "parameters": [ 85 { 86 "name": "body", 87 "in": "body", 88 "required": true, 89 "schema": { 90 "type": "string", 91 "format": "byte" 92 } 93 } 94 ], 95 "tags": [ 96 "WrappersService" 97 ] 98 } 99 }, 100 "/v1/testDouble": { 101 "post": { 102 "operationId": "CreateDoubleValue", 103 "responses": { 104 "200": { 105 "description": "A successful response.", 106 "schema": { 107 "type": "number", 108 "format": "double" 109 } 110 } 111 }, 112 "parameters": [ 113 { 114 "name": "body", 115 "in": "body", 116 "required": true, 117 "schema": { 118 "type": "number", 119 "format": "double" 120 } 121 } 122 ], 123 "tags": [ 124 "WrappersService" 125 ] 126 } 127 }, 128 "/v1/testEmpty": { 129 "post": { 130 "operationId": "CreateEmpty", 131 "responses": { 132 "200": { 133 "description": "A successful response.", 134 "schema": { 135 "properties": {} 136 } 137 } 138 }, 139 "parameters": [ 140 { 141 "name": "body", 142 "in": "body", 143 "required": true, 144 "schema": { 145 "properties": {} 146 } 147 } 148 ], 149 "tags": [ 150 "WrappersService" 151 ] 152 } 153 }, 154 "/v1/testFloat": { 155 "post": { 156 "operationId": "CreateFloatValue", 157 "responses": { 158 "200": { 159 "description": "A successful response.", 160 "schema": { 161 "type": "number", 162 "format": "float" 163 } 164 } 165 }, 166 "parameters": [ 167 { 168 "name": "body", 169 "in": "body", 170 "required": true, 171 "schema": { 172 "type": "number", 173 "format": "float" 174 } 175 } 176 ], 177 "tags": [ 178 "WrappersService" 179 ] 180 } 181 }, 182 "/v1/testInt32": { 183 "post": { 184 "operationId": "CreateInt32Value", 185 "responses": { 186 "200": { 187 "description": "A successful response.", 188 "schema": { 189 "type": "integer", 190 "format": "int32" 191 } 192 } 193 }, 194 "parameters": [ 195 { 196 "name": "body", 197 "in": "body", 198 "required": true, 199 "schema": { 200 "type": "integer", 201 "format": "int32" 202 } 203 } 204 ], 205 "tags": [ 206 "WrappersService" 207 ] 208 } 209 }, 210 "/v1/testInt64": { 211 "post": { 212 "operationId": "CreateInt64Value", 213 "responses": { 214 "200": { 215 "description": "A successful response.", 216 "schema": { 217 "type": "string", 218 "format": "int64" 219 } 220 } 221 }, 222 "parameters": [ 223 { 224 "name": "body", 225 "in": "body", 226 "required": true, 227 "schema": { 228 "type": "string", 229 "format": "int64" 230 } 231 } 232 ], 233 "tags": [ 234 "WrappersService" 235 ] 236 } 237 }, 238 "/v1/testString": { 239 "post": { 240 "operationId": "CreateStringValue", 241 "responses": { 242 "200": { 243 "description": "A successful response.", 244 "schema": { 245 "type": "string" 246 } 247 } 248 }, 249 "parameters": [ 250 { 251 "name": "body", 252 "in": "body", 253 "required": true, 254 "schema": { 255 "type": "string" 256 } 257 } 258 ], 259 "tags": [ 260 "WrappersService" 261 ] 262 } 263 }, 264 "/v1/testUint32": { 265 "post": { 266 "operationId": "CreateUInt32Value", 267 "responses": { 268 "200": { 269 "description": "A successful response.", 270 "schema": { 271 "type": "integer", 272 "format": "int64" 273 } 274 } 275 }, 276 "parameters": [ 277 { 278 "name": "body", 279 "in": "body", 280 "required": true, 281 "schema": { 282 "type": "integer", 283 "format": "int64" 284 } 285 } 286 ], 287 "tags": [ 288 "WrappersService" 289 ] 290 } 291 }, 292 "/v1/testUint64": { 293 "post": { 294 "operationId": "CreateUInt64Value", 295 "responses": { 296 "200": { 297 "description": "A successful response.", 298 "schema": { 299 "type": "string", 300 "format": "uint64" 301 } 302 } 303 }, 304 "parameters": [ 305 { 306 "name": "body", 307 "in": "body", 308 "required": true, 309 "schema": { 310 "type": "string", 311 "format": "uint64" 312 } 313 } 314 ], 315 "tags": [ 316 "WrappersService" 317 ] 318 } 319 } 320 }, 321 "definitions": { 322 "examplepbWrappers": { 323 "type": "object", 324 "properties": { 325 "string_value": { 326 "type": "string" 327 }, 328 "int32_value": { 329 "type": "integer", 330 "format": "int32" 331 }, 332 "int64_value": { 333 "type": "string", 334 "format": "int64" 335 }, 336 "float_value": { 337 "type": "number", 338 "format": "float" 339 }, 340 "double_value": { 341 "type": "number", 342 "format": "double" 343 }, 344 "bool_value": { 345 "type": "boolean", 346 "format": "boolean" 347 }, 348 "uint32_value": { 349 "type": "integer", 350 "format": "int64" 351 }, 352 "uint64_value": { 353 "type": "string", 354 "format": "uint64" 355 }, 356 "bytes_value": { 357 "type": "string", 358 "format": "byte" 359 } 360 } 361 } 362 } 363} 364