github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2273/swagger.json (about) 1 { 2 "swagger": "2.0", 3 "host": "localhost:5007", 4 "info": { 5 "description": "None", 6 "version": "3.0.0", 7 "title": "None" 8 }, 9 "tags": [ 10 { 11 "name": "general", 12 "description": "General settings and information" 13 } 14 ], 15 "schemes": [ 16 "http" 17 ], 18 "paths": { 19 "/expert/v3/snapshot/{instanceID}": { 20 "post": { 21 "tags": [ 22 "general" 23 ], 24 "summary": "Restores a saved snapshot for specified instanceID", 25 "operationId": "postSnapshot", 26 "consumes": [ 27 "application/x-www-form-urlencoded" 28 ], 29 "produces": [ 30 "application/json" 31 ], 32 "parameters": [ 33 { 34 "name": "instanceID", 35 "in": "path", 36 "description": "instance identifier", 37 "required": true, 38 "type": "string", 39 "maxLength": 32, 40 "pattern": "[A-Za-z0-9]+" 41 }, 42 { 43 "name": "snapshot", 44 "in": "formData", 45 "description": "Snapshot file to be restored", 46 "required": true, 47 "type": "string", 48 "format": "binary" 49 } 50 ], 51 "responses": { 52 "200": { 53 "$ref": "#/definitions/Error" 54 } 55 } 56 } 57 } 58 }, 59 "definitions": { 60 "Error": { 61 "type": "object", 62 "properties": { 63 "code": { 64 "type": "integer", 65 "format": "uint16" 66 }, 67 "message": { 68 "type": "string" 69 } 70 } 71 } 72 } 73 }