diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-25 23:41:13 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-08-25 23:41:13 +0300 |
| commit | ba09abbe6a8d0c1f3a54c8c7426eda7b930e1447 (patch) | |
| tree | 296837f577a86a042a16cd006a96c523cbcedcf5 /docs/docs.go | |
| parent | feat: better score handling in profiles (#51) (diff) | |
| download | lphub-ba09abbe6a8d0c1f3a54c8c7426eda7b930e1447.tar.gz lphub-ba09abbe6a8d0c1f3a54c8c7426eda7b930e1447.tar.bz2 lphub-ba09abbe6a8d0c1f3a54c8c7426eda7b930e1447.zip | |
docs: profile improvement swagger (#51)
Former-commit-id: ff35be478c4f29c611c40fa34ca5d134e970cc16
Diffstat (limited to 'docs/docs.go')
| -rw-r--r-- | docs/docs.go | 137 |
1 files changed, 119 insertions, 18 deletions
diff --git a/docs/docs.go b/docs/docs.go index df01379..d0c78ac 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -1158,6 +1158,68 @@ const docTemplate = `{ | |||
| 1158 | } | 1158 | } |
| 1159 | } | 1159 | } |
| 1160 | }, | 1160 | }, |
| 1161 | "controllers.ProfileRankings": { | ||
| 1162 | "type": "object", | ||
| 1163 | "properties": { | ||
| 1164 | "cooperative": { | ||
| 1165 | "$ref": "#/definitions/controllers.ProfileRankingsDetails" | ||
| 1166 | }, | ||
| 1167 | "overall": { | ||
| 1168 | "$ref": "#/definitions/controllers.ProfileRankingsDetails" | ||
| 1169 | }, | ||
| 1170 | "singleplayer": { | ||
| 1171 | "$ref": "#/definitions/controllers.ProfileRankingsDetails" | ||
| 1172 | } | ||
| 1173 | } | ||
| 1174 | }, | ||
| 1175 | "controllers.ProfileRankingsDetails": { | ||
| 1176 | "type": "object", | ||
| 1177 | "properties": { | ||
| 1178 | "completion_count": { | ||
| 1179 | "type": "integer" | ||
| 1180 | }, | ||
| 1181 | "completion_total": { | ||
| 1182 | "type": "integer" | ||
| 1183 | }, | ||
| 1184 | "rank": { | ||
| 1185 | "type": "integer" | ||
| 1186 | } | ||
| 1187 | } | ||
| 1188 | }, | ||
| 1189 | "controllers.ProfileRecords": { | ||
| 1190 | "type": "object", | ||
| 1191 | "properties": { | ||
| 1192 | "portal2_cooperative": { | ||
| 1193 | "type": "array", | ||
| 1194 | "items": { | ||
| 1195 | "$ref": "#/definitions/controllers.ProfileRecordsDetails" | ||
| 1196 | } | ||
| 1197 | }, | ||
| 1198 | "portal2_singleplayer": { | ||
| 1199 | "type": "array", | ||
| 1200 | "items": { | ||
| 1201 | "$ref": "#/definitions/controllers.ProfileRecordsDetails" | ||
| 1202 | } | ||
| 1203 | } | ||
| 1204 | } | ||
| 1205 | }, | ||
| 1206 | "controllers.ProfileRecordsDetails": { | ||
| 1207 | "type": "object", | ||
| 1208 | "properties": { | ||
| 1209 | "map_id": { | ||
| 1210 | "type": "integer" | ||
| 1211 | }, | ||
| 1212 | "map_name": { | ||
| 1213 | "type": "string" | ||
| 1214 | }, | ||
| 1215 | "scores": { | ||
| 1216 | "type": "array", | ||
| 1217 | "items": { | ||
| 1218 | "$ref": "#/definitions/controllers.ProfileScores" | ||
| 1219 | } | ||
| 1220 | } | ||
| 1221 | } | ||
| 1222 | }, | ||
| 1161 | "controllers.ProfileResponse": { | 1223 | "controllers.ProfileResponse": { |
| 1162 | "type": "object", | 1224 | "type": "object", |
| 1163 | "properties": { | 1225 | "properties": { |
| @@ -1167,26 +1229,46 @@ const docTemplate = `{ | |||
| 1167 | "country_code": { | 1229 | "country_code": { |
| 1168 | "type": "string" | 1230 | "type": "string" |
| 1169 | }, | 1231 | }, |
| 1232 | "links": { | ||
| 1233 | "$ref": "#/definitions/models.Links" | ||
| 1234 | }, | ||
| 1170 | "profile": { | 1235 | "profile": { |
| 1171 | "type": "boolean" | 1236 | "type": "boolean" |
| 1172 | }, | 1237 | }, |
| 1173 | "scores_mp": { | 1238 | "rankings": { |
| 1174 | "type": "array", | 1239 | "$ref": "#/definitions/controllers.ProfileRankings" |
| 1175 | "items": { | 1240 | }, |
| 1176 | "$ref": "#/definitions/controllers.ScoreResponse" | 1241 | "records": { |
| 1177 | } | 1242 | "$ref": "#/definitions/controllers.ProfileRecords" |
| 1178 | }, | 1243 | }, |
| 1179 | "scores_sp": { | 1244 | "steam_id": { |
| 1245 | "type": "string" | ||
| 1246 | }, | ||
| 1247 | "titles": { | ||
| 1180 | "type": "array", | 1248 | "type": "array", |
| 1181 | "items": { | 1249 | "items": { |
| 1182 | "$ref": "#/definitions/controllers.ScoreResponse" | 1250 | "$ref": "#/definitions/models.Title" |
| 1183 | } | 1251 | } |
| 1184 | }, | 1252 | }, |
| 1185 | "steam_id": { | 1253 | "user_name": { |
| 1254 | "type": "string" | ||
| 1255 | } | ||
| 1256 | } | ||
| 1257 | }, | ||
| 1258 | "controllers.ProfileScores": { | ||
| 1259 | "type": "object", | ||
| 1260 | "properties": { | ||
| 1261 | "date": { | ||
| 1186 | "type": "string" | 1262 | "type": "string" |
| 1187 | }, | 1263 | }, |
| 1188 | "user_name": { | 1264 | "demo_id": { |
| 1189 | "type": "string" | 1265 | "type": "string" |
| 1266 | }, | ||
| 1267 | "score_count": { | ||
| 1268 | "type": "integer" | ||
| 1269 | }, | ||
| 1270 | "score_time": { | ||
| 1271 | "type": "integer" | ||
| 1190 | } | 1272 | } |
| 1191 | } | 1273 | } |
| 1192 | }, | 1274 | }, |
| @@ -1218,15 +1300,6 @@ const docTemplate = `{ | |||
| 1218 | } | 1300 | } |
| 1219 | } | 1301 | } |
| 1220 | }, | 1302 | }, |
| 1221 | "controllers.ScoreResponse": { | ||
| 1222 | "type": "object", | ||
| 1223 | "properties": { | ||
| 1224 | "map_id": { | ||
| 1225 | "type": "integer" | ||
| 1226 | }, | ||
| 1227 | "records": {} | ||
| 1228 | } | ||
| 1229 | }, | ||
| 1230 | "controllers.SearchResponse": { | 1303 | "controllers.SearchResponse": { |
| 1231 | "type": "object", | 1304 | "type": "object", |
| 1232 | "properties": { | 1305 | "properties": { |
| @@ -1280,6 +1353,23 @@ const docTemplate = `{ | |||
| 1280 | } | 1353 | } |
| 1281 | } | 1354 | } |
| 1282 | }, | 1355 | }, |
| 1356 | "models.Links": { | ||
| 1357 | "type": "object", | ||
| 1358 | "properties": { | ||
| 1359 | "p2sr": { | ||
| 1360 | "type": "string" | ||
| 1361 | }, | ||
| 1362 | "stream": { | ||
| 1363 | "type": "string" | ||
| 1364 | }, | ||
| 1365 | "twitch": { | ||
| 1366 | "type": "string" | ||
| 1367 | }, | ||
| 1368 | "youtube": { | ||
| 1369 | "type": "string" | ||
| 1370 | } | ||
| 1371 | } | ||
| 1372 | }, | ||
| 1283 | "models.Map": { | 1373 | "models.Map": { |
| 1284 | "type": "object", | 1374 | "type": "object", |
| 1285 | "properties": { | 1375 | "properties": { |
| @@ -1380,6 +1470,17 @@ const docTemplate = `{ | |||
| 1380 | } | 1470 | } |
| 1381 | } | 1471 | } |
| 1382 | }, | 1472 | }, |
| 1473 | "models.Title": { | ||
| 1474 | "type": "object", | ||
| 1475 | "properties": { | ||
| 1476 | "color": { | ||
| 1477 | "type": "string" | ||
| 1478 | }, | ||
| 1479 | "name": { | ||
| 1480 | "type": "string" | ||
| 1481 | } | ||
| 1482 | } | ||
| 1483 | }, | ||
| 1383 | "models.UserRanking": { | 1484 | "models.UserRanking": { |
| 1384 | "type": "object", | 1485 | "type": "object", |
| 1385 | "properties": { | 1486 | "properties": { |