diff options
Diffstat (limited to 'docs/swagger.yaml')
| -rw-r--r-- | docs/swagger.yaml | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 5300e1f..db0ab47 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -40,6 +40,17 @@ definitions: | |||
| 40 | username: | 40 | username: |
| 41 | type: string | 41 | type: string |
| 42 | type: object | 42 | type: object |
| 43 | models.RankingsResponse: | ||
| 44 | properties: | ||
| 45 | rankings_mp: | ||
| 46 | items: | ||
| 47 | $ref: '#/definitions/models.UserRanking' | ||
| 48 | type: array | ||
| 49 | rankings_sp: | ||
| 50 | items: | ||
| 51 | $ref: '#/definitions/models.UserRanking' | ||
| 52 | type: array | ||
| 53 | type: object | ||
| 43 | models.RecordRequest: | 54 | models.RecordRequest: |
| 44 | properties: | 55 | properties: |
| 45 | is_partner_orange: | 56 | is_partner_orange: |
| @@ -70,7 +81,16 @@ definitions: | |||
| 70 | type: integer | 81 | type: integer |
| 71 | records: {} | 82 | records: {} |
| 72 | type: object | 83 | type: object |
| 73 | host: localhost:4000/api | 84 | models.UserRanking: |
| 85 | properties: | ||
| 86 | total_score: | ||
| 87 | type: integer | ||
| 88 | user_id: | ||
| 89 | type: string | ||
| 90 | username: | ||
| 91 | type: string | ||
| 92 | type: object | ||
| 93 | host: lp.ardapektezol.com/api | ||
| 74 | info: | 94 | info: |
| 75 | contact: {} | 95 | contact: {} |
| 76 | description: Backend API endpoints for Least Portals Database. | 96 | description: Backend API endpoints for Least Portals Database. |
| @@ -155,7 +175,8 @@ paths: | |||
| 155 | consumes: | 175 | consumes: |
| 156 | - multipart/form-data | 176 | - multipart/form-data |
| 157 | parameters: | 177 | parameters: |
| 158 | - description: Demos | 178 | - collectionFormat: csv |
| 179 | description: Demos | ||
| 159 | in: formData | 180 | in: formData |
| 160 | items: | 181 | items: |
| 161 | type: file | 182 | type: file |