aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.yaml')
-rw-r--r--docs/swagger.yaml63
1 files changed, 62 insertions, 1 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 2fed413..3b706ea 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -61,6 +61,13 @@ definitions:
61 required: 61 required:
62 - route_id 62 - route_id
63 type: object 63 type: object
64 models.EditMapImageRequest:
65 properties:
66 image:
67 type: string
68 required:
69 - image
70 type: object
64 models.EditMapSummaryRequest: 71 models.EditMapSummaryRequest:
65 properties: 72 properties:
66 description: 73 description:
@@ -87,6 +94,8 @@ definitions:
87 properties: 94 properties:
88 id: 95 id:
89 type: integer 96 type: integer
97 is_coop:
98 type: boolean
90 name: 99 name:
91 type: string 100 type: string
92 type: object 101 type: object
@@ -105,6 +114,8 @@ definitions:
105 type: integer 114 type: integer
106 image: 115 image:
107 type: string 116 type: string
117 is_coop:
118 type: boolean
108 map_name: 119 map_name:
109 type: string 120 type: string
110 type: object 121 type: object
@@ -189,6 +200,13 @@ definitions:
189 $ref: '#/definitions/models.UserRanking' 200 $ref: '#/definitions/models.UserRanking'
190 type: array 201 type: array
191 type: object 202 type: object
203 models.RecordResponse:
204 properties:
205 score_count:
206 type: integer
207 score_time:
208 type: integer
209 type: object
192 models.Response: 210 models.Response:
193 properties: 211 properties:
194 data: {} 212 data: {}
@@ -364,6 +382,44 @@ paths:
364 $ref: '#/definitions/models.Response' 382 $ref: '#/definitions/models.Response'
365 tags: 383 tags:
366 - login 384 - login
385 /maps/{id}/image:
386 put:
387 description: Edit map image with specified map id.
388 parameters:
389 - description: JWT Token
390 in: header
391 name: Authorization
392 required: true
393 type: string
394 - description: Map ID
395 in: path
396 name: id
397 required: true
398 type: integer
399 - description: Body
400 in: body
401 name: request
402 required: true
403 schema:
404 $ref: '#/definitions/models.EditMapImageRequest'
405 produces:
406 - application/json
407 responses:
408 "200":
409 description: OK
410 schema:
411 allOf:
412 - $ref: '#/definitions/models.Response'
413 - properties:
414 data:
415 $ref: '#/definitions/models.EditMapImageRequest'
416 type: object
417 "400":
418 description: Bad Request
419 schema:
420 $ref: '#/definitions/models.Response'
421 tags:
422 - maps
367 /maps/{id}/leaderboards: 423 /maps/{id}/leaderboards:
368 get: 424 get:
369 description: Get map leaderboards with specified id. 425 description: Get map leaderboards with specified id.
@@ -435,7 +491,12 @@ paths:
435 "200": 491 "200":
436 description: OK 492 description: OK
437 schema: 493 schema:
438 $ref: '#/definitions/models.Response' 494 allOf:
495 - $ref: '#/definitions/models.Response'
496 - properties:
497 data:
498 $ref: '#/definitions/models.RecordResponse'
499 type: object
439 "400": 500 "400":
440 description: Bad Request 501 description: Bad Request
441 schema: 502 schema: