diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-12-11 16:37:24 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-11 16:37:24 +0300 |
| commit | 34555262c1d6a2dff9e2068019013f700962f13c (patch) | |
| tree | d6d3c141bcd886592d1cd23bb338bed18595be13 /docs/swagger.yaml | |
| parent | feat: add discussion comment posting (#59) (diff) | |
| download | lphub-34555262c1d6a2dff9e2068019013f700962f13c.tar.gz lphub-34555262c1d6a2dff9e2068019013f700962f13c.tar.bz2 lphub-34555262c1d6a2dff9e2068019013f700962f13c.zip | |
docs: add missing param (#59)
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 9de09a3..f3a848f 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -149,22 +149,6 @@ definitions: | |||
| 149 | user: | 149 | user: |
| 150 | $ref: '#/definitions/models.UserShortWithAvatar' | 150 | $ref: '#/definitions/models.UserShortWithAvatar' |
| 151 | type: object | 151 | type: object |
| 152 | handlers.MapDiscussionOnlyTitle: | ||
| 153 | properties: | ||
| 154 | comments: | ||
| 155 | items: | ||
| 156 | $ref: '#/definitions/handlers.MapDiscussionComment' | ||
| 157 | type: array | ||
| 158 | creator: | ||
| 159 | $ref: '#/definitions/models.UserShortWithAvatar' | ||
| 160 | id: | ||
| 161 | type: integer | ||
| 162 | title: | ||
| 163 | type: string | ||
| 164 | updated_at: | ||
| 165 | description: Upvotes int `json:"upvotes"` | ||
| 166 | type: string | ||
| 167 | type: object | ||
| 168 | handlers.MapDiscussionResponse: | 152 | handlers.MapDiscussionResponse: |
| 169 | properties: | 153 | properties: |
| 170 | discussion: | 154 | discussion: |
| @@ -174,7 +158,7 @@ definitions: | |||
| 174 | properties: | 158 | properties: |
| 175 | discussions: | 159 | discussions: |
| 176 | items: | 160 | items: |
| 177 | $ref: '#/definitions/handlers.MapDiscussionOnlyTitle' | 161 | $ref: '#/definitions/handlers.MapDiscussion' |
| 178 | type: array | 162 | type: array |
| 179 | type: object | 163 | type: object |
| 180 | handlers.MapLeaderboardsResponse: | 164 | handlers.MapLeaderboardsResponse: |
| @@ -792,6 +776,11 @@ paths: | |||
| 792 | name: mapid | 776 | name: mapid |
| 793 | required: true | 777 | required: true |
| 794 | type: integer | 778 | type: integer |
| 779 | - description: Discussion ID | ||
| 780 | in: path | ||
| 781 | name: discussionid | ||
| 782 | required: true | ||
| 783 | type: integer | ||
| 795 | - description: Body | 784 | - description: Body |
| 796 | in: body | 785 | in: body |
| 797 | name: request | 786 | name: request |