|
| 1 | +// Package docs Code generated by swaggo/swag. DO NOT EDIT |
| 2 | +package docs |
| 3 | + |
| 4 | +import "github.com/swaggo/swag" |
| 5 | + |
| 6 | +const docTemplate = `{ |
| 7 | + "schemes": {{ marshal .Schemes }}, |
| 8 | + "swagger": "2.0", |
| 9 | + "info": { |
| 10 | + "description": "{{escape .Description}}", |
| 11 | + "title": "{{.Title}}", |
| 12 | + "contact": {}, |
| 13 | + "version": "{{.Version}}" |
| 14 | + }, |
| 15 | + "host": "{{.Host}}", |
| 16 | + "basePath": "{{.BasePath}}", |
| 17 | + "paths": { |
| 18 | + "/announcements": { |
| 19 | + "post": { |
| 20 | + "description": "Creates a new announcement and generates unique ID", |
| 21 | + "consumes": [ |
| 22 | + "application/json" |
| 23 | + ], |
| 24 | + "produces": [ |
| 25 | + "application/json" |
| 26 | + ], |
| 27 | + "tags": [ |
| 28 | + "Announcements" |
| 29 | + ], |
| 30 | + "summary": "Create new Announcement", |
| 31 | + "responses": {} |
| 32 | + } |
| 33 | + }, |
| 34 | + "/announcements/:id": { |
| 35 | + "get": { |
| 36 | + "description": "Retrieves a single announcement from the database.", |
| 37 | + "consumes": [ |
| 38 | + "application/json" |
| 39 | + ], |
| 40 | + "produces": [ |
| 41 | + "application/json" |
| 42 | + ], |
| 43 | + "tags": [ |
| 44 | + "Announcements" |
| 45 | + ], |
| 46 | + "summary": "Get an announcement by ID", |
| 47 | + "parameters": [ |
| 48 | + { |
| 49 | + "type": "string", |
| 50 | + "description": "Announcement ID", |
| 51 | + "name": "id", |
| 52 | + "in": "path", |
| 53 | + "required": true |
| 54 | + } |
| 55 | + ], |
| 56 | + "responses": {} |
| 57 | + } |
| 58 | + }, |
| 59 | + "/events": { |
| 60 | + "get": { |
| 61 | + "description": "Gets all the events from the event database", |
| 62 | + "consumes": [ |
| 63 | + "application/json" |
| 64 | + ], |
| 65 | + "produces": [ |
| 66 | + "application/json" |
| 67 | + ], |
| 68 | + "tags": [ |
| 69 | + "Events" |
| 70 | + ], |
| 71 | + "summary": "Gets all the events", |
| 72 | + "responses": {} |
| 73 | + }, |
| 74 | + "post": { |
| 75 | + "description": "Retrieves a single event from the database.", |
| 76 | + "consumes": [ |
| 77 | + "application/json" |
| 78 | + ], |
| 79 | + "produces": [ |
| 80 | + "application/json" |
| 81 | + ], |
| 82 | + "tags": [ |
| 83 | + "Events" |
| 84 | + ], |
| 85 | + "summary": "Creates a new event and generates new ID", |
| 86 | + "responses": {} |
| 87 | + } |
| 88 | + }, |
| 89 | + "/events/:id": { |
| 90 | + "get": { |
| 91 | + "description": "Retrieves a single event from the database.", |
| 92 | + "consumes": [ |
| 93 | + "application/json" |
| 94 | + ], |
| 95 | + "produces": [ |
| 96 | + "application/json" |
| 97 | + ], |
| 98 | + "tags": [ |
| 99 | + "Events" |
| 100 | + ], |
| 101 | + "summary": "Get an Event by ID", |
| 102 | + "parameters": [ |
| 103 | + { |
| 104 | + "type": "string", |
| 105 | + "description": "Event ID", |
| 106 | + "name": "id", |
| 107 | + "in": "path", |
| 108 | + "required": true |
| 109 | + } |
| 110 | + ], |
| 111 | + "responses": {} |
| 112 | + }, |
| 113 | + "put": { |
| 114 | + "description": "Updates the event of choice in the database", |
| 115 | + "consumes": [ |
| 116 | + "application/json" |
| 117 | + ], |
| 118 | + "produces": [ |
| 119 | + "application/json" |
| 120 | + ], |
| 121 | + "tags": [ |
| 122 | + "Events" |
| 123 | + ], |
| 124 | + "summary": "Update the Event of Choice", |
| 125 | + "parameters": [ |
| 126 | + { |
| 127 | + "type": "string", |
| 128 | + "description": "Event ID", |
| 129 | + "name": "id", |
| 130 | + "in": "path", |
| 131 | + "required": true |
| 132 | + } |
| 133 | + ], |
| 134 | + "responses": {} |
| 135 | + }, |
| 136 | + "delete": { |
| 137 | + "description": "Delete the event of choice from the database", |
| 138 | + "consumes": [ |
| 139 | + "application/json" |
| 140 | + ], |
| 141 | + "produces": [ |
| 142 | + "application/json" |
| 143 | + ], |
| 144 | + "tags": [ |
| 145 | + "Events" |
| 146 | + ], |
| 147 | + "summary": "Deletes the Event of Choice", |
| 148 | + "parameters": [ |
| 149 | + { |
| 150 | + "type": "string", |
| 151 | + "description": "Event ID", |
| 152 | + "name": "id", |
| 153 | + "in": "path", |
| 154 | + "required": true |
| 155 | + } |
| 156 | + ], |
| 157 | + "responses": {} |
| 158 | + } |
| 159 | + } |
| 160 | + } |
| 161 | +}` |
| 162 | + |
| 163 | +// SwaggerInfo holds exported Swagger Info so clients can modify it |
| 164 | +var SwaggerInfo = &swag.Spec{ |
| 165 | + Version: "", |
| 166 | + Host: "", |
| 167 | + BasePath: "", |
| 168 | + Schemes: []string{}, |
| 169 | + Title: "", |
| 170 | + Description: "", |
| 171 | + InfoInstanceName: "swagger", |
| 172 | + SwaggerTemplate: docTemplate, |
| 173 | + LeftDelim: "{{", |
| 174 | + RightDelim: "}}", |
| 175 | +} |
| 176 | + |
| 177 | +func init() { |
| 178 | + swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo) |
| 179 | +} |
0 commit comments