diff options
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 66 |
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 |