github.com/circl-dev/go-swagger@v0.31.0/examples/file-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 uploading a file", 33 "title": "File Upload", 34 "version": "1.0.0" 35 }, 36 "basePath": "/", 37 "paths": { 38 "/upload": { 39 "post": { 40 "consumes": [ 41 "multipart/form-data" 42 ], 43 "tags": [ 44 "uploads" 45 ], 46 "summary": "uploads", 47 "operationId": "uploadFile", 48 "parameters": [ 49 { 50 "type": "file", 51 "name": "file", 52 "in": "formData", 53 "required": true 54 } 55 ], 56 "responses": { 57 "200": { 58 "description": "OK" 59 } 60 } 61 } 62 } 63 } 64 }`)) 65 FlatSwaggerJSON = json.RawMessage([]byte(`{ 66 "consumes": [ 67 "application/json" 68 ], 69 "produces": [ 70 "application/json" 71 ], 72 "schemes": [ 73 "http" 74 ], 75 "swagger": "2.0", 76 "info": { 77 "description": "Example server uploading a file", 78 "title": "File Upload", 79 "version": "1.0.0" 80 }, 81 "basePath": "/", 82 "paths": { 83 "/upload": { 84 "post": { 85 "consumes": [ 86 "multipart/form-data" 87 ], 88 "tags": [ 89 "uploads" 90 ], 91 "summary": "uploads", 92 "operationId": "uploadFile", 93 "parameters": [ 94 { 95 "type": "file", 96 "name": "file", 97 "in": "formData", 98 "required": true 99 } 100 ], 101 "responses": { 102 "200": { 103 "description": "OK" 104 } 105 } 106 } 107 } 108 } 109 }`)) 110 }