github.com/djarvur/go-swagger@v0.18.0/examples/tutorials/custom-server/gen/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 "swagger": "2.0", 22 "info": { 23 "title": "Greeting Server", 24 "version": "1.0.0" 25 }, 26 "paths": { 27 "/hello": { 28 "get": { 29 "produces": [ 30 "text/plain" 31 ], 32 "operationId": "getGreeting", 33 "parameters": [ 34 { 35 "type": "string", 36 "description": "defaults to World if not given", 37 "name": "name", 38 "in": "query" 39 } 40 ], 41 "responses": { 42 "200": { 43 "description": "returns a greeting", 44 "schema": { 45 "description": "contains the actual greeting as plain text", 46 "type": "string" 47 } 48 } 49 } 50 } 51 } 52 } 53 }`)) 54 FlatSwaggerJSON = json.RawMessage([]byte(`{ 55 "swagger": "2.0", 56 "info": { 57 "title": "Greeting Server", 58 "version": "1.0.0" 59 }, 60 "paths": { 61 "/hello": { 62 "get": { 63 "produces": [ 64 "text/plain" 65 ], 66 "operationId": "getGreeting", 67 "parameters": [ 68 { 69 "type": "string", 70 "description": "defaults to World if not given", 71 "name": "name", 72 "in": "query" 73 } 74 ], 75 "responses": { 76 "200": { 77 "description": "returns a greeting", 78 "schema": { 79 "description": "contains the actual greeting as plain text", 80 "type": "string" 81 } 82 } 83 } 84 } 85 } 86 } 87 }`)) 88 }