aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.yaml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/swagger.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 3249483..9de09a3 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -18,6 +18,13 @@ definitions:
18 game: 18 game:
19 $ref: '#/definitions/models.Game' 19 $ref: '#/definitions/models.Game'
20 type: object 20 type: object
21 handlers.CreateMapDiscussionCommentRequest:
22 properties:
23 comment:
24 type: string
25 required:
26 - comment
27 type: object
21 handlers.CreateMapDiscussionRequest: 28 handlers.CreateMapDiscussionRequest:
22 properties: 29 properties:
23 content: 30 content:
@@ -772,6 +779,39 @@ paths:
772 type: object 779 type: object
773 tags: 780 tags:
774 - maps 781 - maps
782 post:
783 description: Create map discussion comment with specified map id.
784 parameters:
785 - description: JWT Token
786 in: header
787 name: Authorization
788 required: true
789 type: string
790 - description: Map ID
791 in: path
792 name: mapid
793 required: true
794 type: integer
795 - description: Body
796 in: body
797 name: request
798 required: true
799 schema:
800 $ref: '#/definitions/handlers.CreateMapDiscussionCommentRequest'
801 produces:
802 - application/json
803 responses:
804 "200":
805 description: OK
806 schema:
807 allOf:
808 - $ref: '#/definitions/models.Response'
809 - properties:
810 data:
811 $ref: '#/definitions/handlers.CreateMapDiscussionCommentRequest'
812 type: object
813 tags:
814 - maps
775 put: 815 put:
776 description: Edit map discussion with specified map id. 816 description: Edit map discussion with specified map id.
777 parameters: 817 parameters: