aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.yaml
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-06-29 19:35:02 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-06-29 19:35:02 +0300
commit7d27b7bde11fa117f37ce18e0807ef299b69c700 (patch)
tree6a5e6e86aa0ed88c52bdabfbca8b0b5528c3b125 /docs/swagger.yaml
parentfeat: delete map summary (diff)
downloadlphub-7d27b7bde11fa117f37ce18e0807ef299b69c700.tar.gz
lphub-7d27b7bde11fa117f37ce18e0807ef299b69c700.tar.bz2
lphub-7d27b7bde11fa117f37ce18e0807ef299b69c700.zip
docs: updated for add/edit/delete map summary
Former-commit-id: 0f2f20f84b5a52d747f18fba771bc88478f8c059
Diffstat (limited to 'docs/swagger.yaml')
-rw-r--r--docs/swagger.yaml66
1 files changed, 58 insertions, 8 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index ba20f6d..5309f67 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -32,18 +32,36 @@ definitions:
32 game: 32 game:
33 $ref: '#/definitions/models.Game' 33 $ref: '#/definitions/models.Game'
34 type: object 34 type: object
35 models.EditMapSummaryRequest: 35 models.CreateMapSummaryRequest:
36 properties: 36 properties:
37 image: 37 category_id:
38 type: integer
39 description:
38 type: string 40 type: string
39 routes: 41 record_date:
40 items: 42 type: string
41 $ref: '#/definitions/models.EditMapSummaryRequestDetails' 43 score_count:
42 type: array 44 type: integer
45 showcase:
46 type: string
47 user_name:
48 type: string
49 required:
50 - category_id
51 - description
52 - record_date
53 - score_count
54 - showcase
55 - user_name
56 type: object
57 models.DeleteMapSummaryRequest:
58 properties:
59 route_id:
60 type: integer
43 required: 61 required:
44 - image 62 - route_id
45 type: object 63 type: object
46 models.EditMapSummaryRequestDetails: 64 models.EditMapSummaryRequest:
47 properties: 65 properties:
48 description: 66 description:
49 type: string 67 type: string
@@ -474,6 +492,38 @@ paths:
474 summary: Get map summary with specified id. 492 summary: Get map summary with specified id.
475 tags: 493 tags:
476 - maps 494 - maps
495 post:
496 parameters:
497 - description: Map ID
498 in: path
499 name: id
500 required: true
501 type: integer
502 - description: Body
503 in: body
504 name: request
505 required: true
506 schema:
507 $ref: '#/definitions/models.DeleteMapSummaryRequest'
508 produces:
509 - application/json
510 responses:
511 "200":
512 description: OK
513 schema:
514 allOf:
515 - $ref: '#/definitions/models.Response'
516 - properties:
517 data:
518 $ref: '#/definitions/models.DeleteMapSummaryRequest'
519 type: object
520 "400":
521 description: Bad Request
522 schema:
523 $ref: '#/definitions/models.Response'
524 summary: Delete map summary with specified map id.
525 tags:
526 - maps
477 put: 527 put:
478 parameters: 528 parameters:
479 - description: Map ID 529 - description: Map ID