diff options
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 82 |
1 files changed, 38 insertions, 44 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 597df9f..61f2ad7 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | basePath: /v1 | 1 | basePath: /v1 |
| 2 | definitions: | 2 | definitions: |
| 3 | models.Category: | ||
| 4 | properties: | ||
| 5 | id: | ||
| 6 | type: integer | ||
| 7 | name: | ||
| 8 | type: string | ||
| 9 | type: object | ||
| 3 | models.Chapter: | 10 | models.Chapter: |
| 4 | properties: | 11 | properties: |
| 5 | id: | 12 | id: |
| @@ -41,7 +48,6 @@ definitions: | |||
| 41 | properties: | 48 | properties: |
| 42 | chapter_name: | 49 | chapter_name: |
| 43 | type: string | 50 | type: string |
| 44 | data: {} | ||
| 45 | game_name: | 51 | game_name: |
| 46 | type: string | 52 | type: string |
| 47 | id: | 53 | id: |
| @@ -49,17 +55,6 @@ definitions: | |||
| 49 | map_name: | 55 | map_name: |
| 50 | type: string | 56 | type: string |
| 51 | type: object | 57 | type: object |
| 52 | models.MapCategoryScores: | ||
| 53 | properties: | ||
| 54 | any: | ||
| 55 | type: integer | ||
| 56 | cm: | ||
| 57 | type: integer | ||
| 58 | inbounds_sla: | ||
| 59 | type: integer | ||
| 60 | no_sla: | ||
| 61 | type: integer | ||
| 62 | type: object | ||
| 63 | models.MapHistory: | 58 | models.MapHistory: |
| 64 | properties: | 59 | properties: |
| 65 | date: | 60 | date: |
| @@ -73,6 +68,17 @@ definitions: | |||
| 73 | properties: | 68 | properties: |
| 74 | records: {} | 69 | records: {} |
| 75 | type: object | 70 | type: object |
| 71 | models.MapRoute: | ||
| 72 | properties: | ||
| 73 | category: | ||
| 74 | $ref: '#/definitions/models.Category' | ||
| 75 | description: | ||
| 76 | type: string | ||
| 77 | score_count: | ||
| 78 | type: integer | ||
| 79 | showcase: | ||
| 80 | type: string | ||
| 81 | type: object | ||
| 76 | models.MapShort: | 82 | models.MapShort: |
| 77 | properties: | 83 | properties: |
| 78 | id: | 84 | id: |
| @@ -82,22 +88,23 @@ definitions: | |||
| 82 | type: object | 88 | type: object |
| 83 | models.MapSummary: | 89 | models.MapSummary: |
| 84 | properties: | 90 | properties: |
| 85 | category_scores: | ||
| 86 | $ref: '#/definitions/models.MapCategoryScores' | ||
| 87 | description: | ||
| 88 | type: string | ||
| 89 | history: | 91 | history: |
| 90 | items: | 92 | items: |
| 91 | $ref: '#/definitions/models.MapHistory' | 93 | $ref: '#/definitions/models.MapHistory' |
| 92 | type: array | 94 | type: array |
| 93 | rating: | 95 | rating: |
| 94 | type: number | 96 | type: number |
| 95 | routers: | 97 | routes: |
| 96 | items: | 98 | items: |
| 97 | type: string | 99 | $ref: '#/definitions/models.MapRoute' |
| 98 | type: array | 100 | type: array |
| 99 | showcase: | 101 | type: object |
| 100 | type: string | 102 | models.MapSummaryResponse: |
| 103 | properties: | ||
| 104 | map: | ||
| 105 | $ref: '#/definitions/models.Map' | ||
| 106 | summary: | ||
| 107 | $ref: '#/definitions/models.MapSummary' | ||
| 101 | type: object | 108 | type: object |
| 102 | models.ProfileResponse: | 109 | models.ProfileResponse: |
| 103 | properties: | 110 | properties: |
| @@ -165,21 +172,11 @@ definitions: | |||
| 165 | properties: | 172 | properties: |
| 166 | maps: | 173 | maps: |
| 167 | items: | 174 | items: |
| 168 | properties: | 175 | $ref: '#/definitions/models.MapShort' |
| 169 | id: | ||
| 170 | type: integer | ||
| 171 | name: | ||
| 172 | type: string | ||
| 173 | type: object | ||
| 174 | type: array | 176 | type: array |
| 175 | players: | 177 | players: |
| 176 | items: | 178 | items: |
| 177 | properties: | 179 | $ref: '#/definitions/models.UserShort' |
| 178 | steam_id: | ||
| 179 | type: string | ||
| 180 | user_name: | ||
| 181 | type: string | ||
| 182 | type: object | ||
| 183 | type: array | 180 | type: array |
| 184 | type: object | 181 | type: object |
| 185 | models.UserRanking: | 182 | models.UserRanking: |
| @@ -191,6 +188,13 @@ definitions: | |||
| 191 | user_name: | 188 | user_name: |
| 192 | type: string | 189 | type: string |
| 193 | type: object | 190 | type: object |
| 191 | models.UserShort: | ||
| 192 | properties: | ||
| 193 | steam_id: | ||
| 194 | type: string | ||
| 195 | user_name: | ||
| 196 | type: string | ||
| 197 | type: object | ||
| 194 | host: lp.ardapektezol.com/api | 198 | host: lp.ardapektezol.com/api |
| 195 | info: | 199 | info: |
| 196 | contact: {} | 200 | contact: {} |
| @@ -456,12 +460,7 @@ paths: | |||
| 456 | - $ref: '#/definitions/models.Response' | 460 | - $ref: '#/definitions/models.Response' |
| 457 | - properties: | 461 | - properties: |
| 458 | data: | 462 | data: |
| 459 | allOf: | 463 | $ref: '#/definitions/models.MapSummaryResponse' |
| 460 | - $ref: '#/definitions/models.Map' | ||
| 461 | - properties: | ||
| 462 | data: | ||
| 463 | $ref: '#/definitions/models.MapSummary' | ||
| 464 | type: object | ||
| 465 | type: object | 464 | type: object |
| 466 | "400": | 465 | "400": |
| 467 | description: Bad Request | 466 | description: Bad Request |
| @@ -555,12 +554,7 @@ paths: | |||
| 555 | "200": | 554 | "200": |
| 556 | description: OK | 555 | description: OK |
| 557 | schema: | 556 | schema: |
| 558 | allOf: | 557 | $ref: '#/definitions/models.Response' |
| 559 | - $ref: '#/definitions/models.Response' | ||
| 560 | - properties: | ||
| 561 | data: | ||
| 562 | $ref: '#/definitions/models.ProfileResponse' | ||
| 563 | type: object | ||
| 564 | "400": | 558 | "400": |
| 565 | description: Bad Request | 559 | description: Bad Request |
| 566 | schema: | 560 | schema: |