diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-12-11 16:34:10 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-11 16:34:10 +0300 |
| commit | 28045d2635dff2c2b18cbcdc0da424b0ec7da0ac (patch) | |
| tree | cb94ec913a230f6bd916b7a5bc3721b45e13ea10 /docs/swagger.yaml | |
| parent | feat: add content to discussions list (#59) (diff) | |
| download | lphub-28045d2635dff2c2b18cbcdc0da424b0ec7da0ac.tar.gz lphub-28045d2635dff2c2b18cbcdc0da424b0ec7da0ac.tar.bz2 lphub-28045d2635dff2c2b18cbcdc0da424b0ec7da0ac.zip | |
feat: add discussion comment posting (#59)
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 40 |
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: |