aboutsummaryrefslogtreecommitdiff
path: root/docs/docs.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-10-09 19:02:39 +0300
committerGitHub <noreply@github.com>2023-10-09 19:02:39 +0300
commit1f8611153233516c9e18fc12b3fac9bae904804b (patch)
tree950d4c1546f6d71b12093a0543a9dfa00770688f /docs/docs.go
parentfeat: add is_disabled to chapters maps (#112) (diff)
downloadlphub-1f8611153233516c9e18fc12b3fac9bae904804b.tar.gz
lphub-1f8611153233516c9e18fc12b3fac9bae904804b.tar.bz2
lphub-1f8611153233516c9e18fc12b3fac9bae904804b.zip
feat: new endpoint for getting every map for a game (#114)
Former-commit-id: 708f57ef08abea7f2b0549e8dad75096fd315558
Diffstat (limited to 'docs/docs.go')
-rw-r--r--docs/docs.go43
1 files changed, 43 insertions, 0 deletions
diff --git a/docs/docs.go b/docs/docs.go
index 83d3a5c..d1643c3 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -177,6 +177,46 @@ const docTemplate = `{
177 } 177 }
178 } 178 }
179 }, 179 },
180 "/games/{gameid}/maps": {
181 "get": {
182 "description": "Get maps from the specified game id.",
183 "produces": [
184 "application/json"
185 ],
186 "tags": [
187 "games \u0026 chapters"
188 ],
189 "parameters": [
190 {
191 "type": "integer",
192 "description": "Game ID",
193 "name": "gameid",
194 "in": "path",
195 "required": true
196 }
197 ],
198 "responses": {
199 "200": {
200 "description": "OK",
201 "schema": {
202 "allOf": [
203 {
204 "$ref": "#/definitions/models.Response"
205 },
206 {
207 "type": "object",
208 "properties": {
209 "data": {
210 "$ref": "#/definitions/handlers.ChaptersResponse"
211 }
212 }
213 }
214 ]
215 }
216 }
217 }
218 }
219 },
180 "/login": { 220 "/login": {
181 "get": { 221 "get": {
182 "description": "Get (redirect) login page for Steam auth.", 222 "description": "Get (redirect) login page for Steam auth.",
@@ -1884,6 +1924,9 @@ const docTemplate = `{
1884 "id": { 1924 "id": {
1885 "type": "integer" 1925 "type": "integer"
1886 }, 1926 },
1927 "is_disabled": {
1928 "type": "boolean"
1929 },
1887 "name": { 1930 "name": {
1888 "type": "string" 1931 "type": "string"
1889 } 1932 }