diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-30 19:14:46 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-30 19:14:46 +0300 |
| commit | 1e41c244446b81f3fdb7ebb3028cd68eaa919982 (patch) | |
| tree | 0ac33b057db5f31607b87593378ecd8b0e957a3b | |
| parent | feat: finalized profile scores in one array (#51) (diff) | |
| download | lphub-1e41c244446b81f3fdb7ebb3028cd68eaa919982.tar.gz lphub-1e41c244446b81f3fdb7ebb3028cd68eaa919982.tar.bz2 lphub-1e41c244446b81f3fdb7ebb3028cd68eaa919982.zip | |
docs: finalized profile scores in one array (#51)
Former-commit-id: 93b44c71389b5ff98d9a610611be21fd12c88664
| -rw-r--r-- | docs/docs.go | 29 | ||||
| -rw-r--r-- | docs/swagger.json | 29 | ||||
| -rw-r--r-- | docs/swagger.yaml | 21 |
3 files changed, 33 insertions, 46 deletions
diff --git a/docs/docs.go b/docs/docs.go index 6357150..72a1434 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -1186,29 +1186,21 @@ const docTemplate = `{ | |||
| 1186 | "handlers.ProfileRecords": { | 1186 | "handlers.ProfileRecords": { |
| 1187 | "type": "object", | 1187 | "type": "object", |
| 1188 | "properties": { | 1188 | "properties": { |
| 1189 | "portal2_cooperative": { | 1189 | "category_id": { |
| 1190 | "type": "array", | 1190 | "type": "integer" |
| 1191 | "items": { | 1191 | }, |
| 1192 | "$ref": "#/definitions/handlers.ProfileRecordsDetails" | 1192 | "game_id": { |
| 1193 | } | 1193 | "type": "integer" |
| 1194 | }, | 1194 | }, |
| 1195 | "portal2_singleplayer": { | ||
| 1196 | "type": "array", | ||
| 1197 | "items": { | ||
| 1198 | "$ref": "#/definitions/handlers.ProfileRecordsDetails" | ||
| 1199 | } | ||
| 1200 | } | ||
| 1201 | } | ||
| 1202 | }, | ||
| 1203 | "handlers.ProfileRecordsDetails": { | ||
| 1204 | "type": "object", | ||
| 1205 | "properties": { | ||
| 1206 | "map_id": { | 1195 | "map_id": { |
| 1207 | "type": "integer" | 1196 | "type": "integer" |
| 1208 | }, | 1197 | }, |
| 1209 | "map_name": { | 1198 | "map_name": { |
| 1210 | "type": "string" | 1199 | "type": "string" |
| 1211 | }, | 1200 | }, |
| 1201 | "map_wr_count": { | ||
| 1202 | "type": "integer" | ||
| 1203 | }, | ||
| 1212 | "scores": { | 1204 | "scores": { |
| 1213 | "type": "array", | 1205 | "type": "array", |
| 1214 | "items": { | 1206 | "items": { |
| @@ -1236,7 +1228,10 @@ const docTemplate = `{ | |||
| 1236 | "$ref": "#/definitions/handlers.ProfileRankings" | 1228 | "$ref": "#/definitions/handlers.ProfileRankings" |
| 1237 | }, | 1229 | }, |
| 1238 | "records": { | 1230 | "records": { |
| 1239 | "$ref": "#/definitions/handlers.ProfileRecords" | 1231 | "type": "array", |
| 1232 | "items": { | ||
| 1233 | "$ref": "#/definitions/handlers.ProfileRecords" | ||
| 1234 | } | ||
| 1240 | }, | 1235 | }, |
| 1241 | "steam_id": { | 1236 | "steam_id": { |
| 1242 | "type": "string" | 1237 | "type": "string" |
diff --git a/docs/swagger.json b/docs/swagger.json index 22e30d2..6fbe02e 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -1179,29 +1179,21 @@ | |||
| 1179 | "handlers.ProfileRecords": { | 1179 | "handlers.ProfileRecords": { |
| 1180 | "type": "object", | 1180 | "type": "object", |
| 1181 | "properties": { | 1181 | "properties": { |
| 1182 | "portal2_cooperative": { | 1182 | "category_id": { |
| 1183 | "type": "array", | 1183 | "type": "integer" |
| 1184 | "items": { | 1184 | }, |
| 1185 | "$ref": "#/definitions/handlers.ProfileRecordsDetails" | 1185 | "game_id": { |
| 1186 | } | 1186 | "type": "integer" |
| 1187 | }, | 1187 | }, |
| 1188 | "portal2_singleplayer": { | ||
| 1189 | "type": "array", | ||
| 1190 | "items": { | ||
| 1191 | "$ref": "#/definitions/handlers.ProfileRecordsDetails" | ||
| 1192 | } | ||
| 1193 | } | ||
| 1194 | } | ||
| 1195 | }, | ||
| 1196 | "handlers.ProfileRecordsDetails": { | ||
| 1197 | "type": "object", | ||
| 1198 | "properties": { | ||
| 1199 | "map_id": { | 1188 | "map_id": { |
| 1200 | "type": "integer" | 1189 | "type": "integer" |
| 1201 | }, | 1190 | }, |
| 1202 | "map_name": { | 1191 | "map_name": { |
| 1203 | "type": "string" | 1192 | "type": "string" |
| 1204 | }, | 1193 | }, |
| 1194 | "map_wr_count": { | ||
| 1195 | "type": "integer" | ||
| 1196 | }, | ||
| 1205 | "scores": { | 1197 | "scores": { |
| 1206 | "type": "array", | 1198 | "type": "array", |
| 1207 | "items": { | 1199 | "items": { |
| @@ -1229,7 +1221,10 @@ | |||
| 1229 | "$ref": "#/definitions/handlers.ProfileRankings" | 1221 | "$ref": "#/definitions/handlers.ProfileRankings" |
| 1230 | }, | 1222 | }, |
| 1231 | "records": { | 1223 | "records": { |
| 1232 | "$ref": "#/definitions/handlers.ProfileRecords" | 1224 | "type": "array", |
| 1225 | "items": { | ||
| 1226 | "$ref": "#/definitions/handlers.ProfileRecords" | ||
| 1227 | } | ||
| 1233 | }, | 1228 | }, |
| 1234 | "steam_id": { | 1229 | "steam_id": { |
| 1235 | "type": "string" | 1230 | "type": "string" |
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 462679e..4b59ee9 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -112,21 +112,16 @@ definitions: | |||
| 112 | type: object | 112 | type: object |
| 113 | handlers.ProfileRecords: | 113 | handlers.ProfileRecords: |
| 114 | properties: | 114 | properties: |
| 115 | portal2_cooperative: | 115 | category_id: |
| 116 | items: | 116 | type: integer |
| 117 | $ref: '#/definitions/handlers.ProfileRecordsDetails' | 117 | game_id: |
| 118 | type: array | 118 | type: integer |
| 119 | portal2_singleplayer: | ||
| 120 | items: | ||
| 121 | $ref: '#/definitions/handlers.ProfileRecordsDetails' | ||
| 122 | type: array | ||
| 123 | type: object | ||
| 124 | handlers.ProfileRecordsDetails: | ||
| 125 | properties: | ||
| 126 | map_id: | 119 | map_id: |
| 127 | type: integer | 120 | type: integer |
| 128 | map_name: | 121 | map_name: |
| 129 | type: string | 122 | type: string |
| 123 | map_wr_count: | ||
| 124 | type: integer | ||
| 130 | scores: | 125 | scores: |
| 131 | items: | 126 | items: |
| 132 | $ref: '#/definitions/handlers.ProfileScores' | 127 | $ref: '#/definitions/handlers.ProfileScores' |
| @@ -145,7 +140,9 @@ definitions: | |||
| 145 | rankings: | 140 | rankings: |
| 146 | $ref: '#/definitions/handlers.ProfileRankings' | 141 | $ref: '#/definitions/handlers.ProfileRankings' |
| 147 | records: | 142 | records: |
| 148 | $ref: '#/definitions/handlers.ProfileRecords' | 143 | items: |
| 144 | $ref: '#/definitions/handlers.ProfileRecords' | ||
| 145 | type: array | ||
| 149 | steam_id: | 146 | steam_id: |
| 150 | type: string | 147 | type: string |
| 151 | titles: | 148 | titles: |