aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.yaml')
-rw-r--r--docs/swagger.yaml78
1 files changed, 56 insertions, 22 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index ba4775a..9d58620 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -32,6 +32,28 @@ definitions:
32 game: 32 game:
33 $ref: '#/definitions/models.Game' 33 $ref: '#/definitions/models.Game'
34 type: object 34 type: object
35 models.EditMapSummaryRequest:
36 properties:
37 description:
38 type: string
39 record_date:
40 type: string
41 route_id:
42 type: integer
43 score_count:
44 type: integer
45 showcase:
46 type: string
47 user_name:
48 type: string
49 required:
50 - description
51 - record_date
52 - route_id
53 - score_count
54 - showcase
55 - user_name
56 type: object
35 models.Game: 57 models.Game:
36 properties: 58 properties:
37 id: 59 id:
@@ -52,6 +74,8 @@ definitions:
52 type: string 74 type: string
53 id: 75 id:
54 type: integer 76 type: integer
77 image:
78 type: string
55 map_name: 79 map_name:
56 type: string 80 type: string
57 type: object 81 type: object
@@ -140,15 +164,6 @@ definitions:
140 type: boolean 164 type: boolean
141 partner_id: 165 partner_id:
142 type: string 166 type: string
143 score_count:
144 type: integer
145 score_time:
146 type: integer
147 required:
148 - is_partner_orange
149 - partner_id
150 - score_count
151 - score_time
152 type: object 167 type: object
153 models.Response: 168 models.Response:
154 properties: 169 properties:
@@ -388,23 +403,16 @@ paths:
388 name: Authorization 403 name: Authorization
389 required: true 404 required: true
390 type: string 405 type: string
391 - description: Demos 406 - description: Host Demo
392 in: formData
393 items:
394 type: file
395 name: demos
396 required: true
397 type: array
398 - description: Score Count
399 in: formData 407 in: formData
400 name: score_count 408 name: host_demo
401 required: true 409 required: true
402 type: integer 410 type: file
403 - description: Score Time 411 - description: Partner Demo
404 in: formData 412 in: formData
405 name: score_time 413 name: partner_demo
406 required: true 414 required: true
407 type: integer 415 type: file
408 - description: Is Partner Orange 416 - description: Is Partner Orange
409 in: formData 417 in: formData
410 name: is_partner_orange 418 name: is_partner_orange
@@ -465,6 +473,32 @@ paths:
465 summary: Get map summary with specified id. 473 summary: Get map summary with specified id.
466 tags: 474 tags:
467 - maps 475 - maps
476 put:
477 parameters:
478 - description: Map ID
479 in: path
480 name: id
481 required: true
482 type: integer
483 produces:
484 - application/json
485 responses:
486 "200":
487 description: OK
488 schema:
489 allOf:
490 - $ref: '#/definitions/models.Response'
491 - properties:
492 data:
493 $ref: '#/definitions/models.EditMapSummaryRequest'
494 type: object
495 "400":
496 description: Bad Request
497 schema:
498 $ref: '#/definitions/models.Response'
499 summary: Edit map summary with specified map id.
500 tags:
501 - maps
468 /profile: 502 /profile:
469 get: 503 get:
470 consumes: 504 consumes: