diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-22 21:44:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-22 21:44:53 +0300 |
| commit | d3b4d1d6dca5c1b35aefa14346a4066ad88c53e7 (patch) | |
| tree | 112d4119c92a9847e99639473c73ade13c32b13f /docs/swagger.yaml | |
| parent | feat: improve map and user searches (#77) (diff) | |
| download | lphub-d3b4d1d6dca5c1b35aefa14346a4066ad88c53e7.tar.gz lphub-d3b4d1d6dca5c1b35aefa14346a4066ad88c53e7.tar.bz2 lphub-d3b4d1d6dca5c1b35aefa14346a4066ad88c53e7.zip | |
docs: update search response (#77)
Former-commit-id: 3dcdf5e4745c9e74a30e91f9f71db1b7610e1fc5
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 0465daa..98bd042 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -103,6 +103,17 @@ definitions: | |||
| 103 | $ref: '#/definitions/models.Pagination' | 103 | $ref: '#/definitions/models.Pagination' |
| 104 | records: {} | 104 | records: {} |
| 105 | type: object | 105 | type: object |
| 106 | handlers.MapShortWithGame: | ||
| 107 | properties: | ||
| 108 | chapter: | ||
| 109 | type: string | ||
| 110 | game: | ||
| 111 | type: string | ||
| 112 | id: | ||
| 113 | type: integer | ||
| 114 | map: | ||
| 115 | type: string | ||
| 116 | type: object | ||
| 106 | handlers.MapSummaryResponse: | 117 | handlers.MapSummaryResponse: |
| 107 | properties: | 118 | properties: |
| 108 | map: | 119 | map: |
| @@ -231,11 +242,11 @@ definitions: | |||
| 231 | properties: | 242 | properties: |
| 232 | maps: | 243 | maps: |
| 233 | items: | 244 | items: |
| 234 | $ref: '#/definitions/models.MapShort' | 245 | $ref: '#/definitions/handlers.MapShortWithGame' |
| 235 | type: array | 246 | type: array |
| 236 | players: | 247 | players: |
| 237 | items: | 248 | items: |
| 238 | $ref: '#/definitions/models.UserShort' | 249 | $ref: '#/definitions/models.UserShortWithAvatar' |
| 239 | type: array | 250 | type: array |
| 240 | type: object | 251 | type: object |
| 241 | models.Category: | 252 | models.Category: |
| @@ -367,6 +378,15 @@ definitions: | |||
| 367 | user_name: | 378 | user_name: |
| 368 | type: string | 379 | type: string |
| 369 | type: object | 380 | type: object |
| 381 | models.UserShortWithAvatar: | ||
| 382 | properties: | ||
| 383 | avatar_link: | ||
| 384 | type: string | ||
| 385 | steam_id: | ||
| 386 | type: string | ||
| 387 | user_name: | ||
| 388 | type: string | ||
| 389 | type: object | ||
| 370 | host: lp.ardapektezol.com/api | 390 | host: lp.ardapektezol.com/api |
| 371 | info: | 391 | info: |
| 372 | contact: {} | 392 | contact: {} |