aboutsummaryrefslogtreecommitdiff
path: root/docs/docs.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-05-03 16:05:30 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-05-03 16:05:30 +0300
commit937160bfda2c8edc5ff5dd73899b517bb0ceb515 (patch)
tree76d9d5d679c4de0032877ea244c08a3a2c4a658f /docs/docs.go
parentfeat: add path request to the response with names (diff)
downloadlphub-937160bfda2c8edc5ff5dd73899b517bb0ceb515.tar.gz
lphub-937160bfda2c8edc5ff5dd73899b517bb0ceb515.tar.bz2
lphub-937160bfda2c8edc5ff5dd73899b517bb0ceb515.zip
fix: sql typos, routing change
Diffstat (limited to 'docs/docs.go')
-rw-r--r--docs/docs.go67
1 files changed, 39 insertions, 28 deletions
diff --git a/docs/docs.go b/docs/docs.go
index 164db20..cd129f0 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -26,13 +26,13 @@ const docTemplate = `{
26 "application/json" 26 "application/json"
27 ], 27 ],
28 "tags": [ 28 "tags": [
29 "chapters" 29 "games \u0026 chapters"
30 ], 30 ],
31 "summary": "Get chapters from the specified game id.", 31 "summary": "Get maps from the specified chapter id.",
32 "parameters": [ 32 "parameters": [
33 { 33 {
34 "type": "integer", 34 "type": "integer",
35 "description": "Game ID", 35 "description": "Chapter ID",
36 "name": "id", 36 "name": "id",
37 "in": "path", 37 "in": "path",
38 "required": true 38 "required": true
@@ -50,7 +50,7 @@ const docTemplate = `{
50 "type": "object", 50 "type": "object",
51 "properties": { 51 "properties": {
52 "data": { 52 "data": {
53 "$ref": "#/definitions/models.ChaptersResponse" 53 "$ref": "#/definitions/models.ChapterMapsResponse"
54 } 54 }
55 } 55 }
56 } 56 }
@@ -146,7 +146,7 @@ const docTemplate = `{
146 "application/json" 146 "application/json"
147 ], 147 ],
148 "tags": [ 148 "tags": [
149 "games" 149 "games \u0026 chapters"
150 ], 150 ],
151 "summary": "Get games from the leaderboards.", 151 "summary": "Get games from the leaderboards.",
152 "responses": { 152 "responses": {
@@ -180,18 +180,24 @@ const docTemplate = `{
180 } 180 }
181 } 181 }
182 }, 182 },
183 "/login": { 183 "/games/{id}": {
184 "get": { 184 "get": {
185 "consumes": [
186 "application/json"
187 ],
188 "produces": [ 185 "produces": [
189 "application/json" 186 "application/json"
190 ], 187 ],
191 "tags": [ 188 "tags": [
192 "login" 189 "games \u0026 chapters"
190 ],
191 "summary": "Get chapters from the specified game id.",
192 "parameters": [
193 {
194 "type": "integer",
195 "description": "Game ID",
196 "name": "id",
197 "in": "path",
198 "required": true
199 }
193 ], 200 ],
194 "summary": "Get (redirect) login page for Steam auth.",
195 "responses": { 201 "responses": {
196 "200": { 202 "200": {
197 "description": "OK", 203 "description": "OK",
@@ -204,7 +210,7 @@ const docTemplate = `{
204 "type": "object", 210 "type": "object",
205 "properties": { 211 "properties": {
206 "data": { 212 "data": {
207 "$ref": "#/definitions/models.LoginResponse" 213 "$ref": "#/definitions/models.ChaptersResponse"
208 } 214 }
209 } 215 }
210 } 216 }
@@ -220,24 +226,18 @@ const docTemplate = `{
220 } 226 }
221 } 227 }
222 }, 228 },
223 "/maps/{id}": { 229 "/login": {
224 "get": { 230 "get": {
231 "consumes": [
232 "application/json"
233 ],
225 "produces": [ 234 "produces": [
226 "application/json" 235 "application/json"
227 ], 236 ],
228 "tags": [ 237 "tags": [
229 "maps" 238 "login"
230 ],
231 "summary": "Get maps from the specified chapter id.",
232 "parameters": [
233 {
234 "type": "integer",
235 "description": "Chapter ID",
236 "name": "id",
237 "in": "path",
238 "required": true
239 }
240 ], 239 ],
240 "summary": "Get (redirect) login page for Steam auth.",
241 "responses": { 241 "responses": {
242 "200": { 242 "200": {
243 "description": "OK", 243 "description": "OK",
@@ -250,10 +250,7 @@ const docTemplate = `{
250 "type": "object", 250 "type": "object",
251 "properties": { 251 "properties": {
252 "data": { 252 "data": {
253 "type": "array", 253 "$ref": "#/definitions/models.LoginResponse"
254 "items": {
255 "$ref": "#/definitions/models.MapShort"
256 }
257 } 254 }
258 } 255 }
259 } 256 }
@@ -751,6 +748,20 @@ const docTemplate = `{
751 } 748 }
752 } 749 }
753 }, 750 },
751 "models.ChapterMapsResponse": {
752 "type": "object",
753 "properties": {
754 "chapter": {
755 "$ref": "#/definitions/models.Chapter"
756 },
757 "maps": {
758 "type": "array",
759 "items": {
760 "$ref": "#/definitions/models.MapShort"
761 }
762 }
763 }
764 },
754 "models.ChaptersResponse": { 765 "models.ChaptersResponse": {
755 "type": "object", 766 "type": "object",
756 "properties": { 767 "properties": {