aboutsummaryrefslogtreecommitdiff
path: root/docs/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'docs/swagger.json')
-rw-r--r--docs/swagger.json137
1 files changed, 119 insertions, 18 deletions
diff --git a/docs/swagger.json b/docs/swagger.json
index 0f3dade..cf37a5a 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -1151,6 +1151,68 @@
1151 } 1151 }
1152 } 1152 }
1153 }, 1153 },
1154 "controllers.ProfileRankings": {
1155 "type": "object",
1156 "properties": {
1157 "cooperative": {
1158 "$ref": "#/definitions/controllers.ProfileRankingsDetails"
1159 },
1160 "overall": {
1161 "$ref": "#/definitions/controllers.ProfileRankingsDetails"
1162 },
1163 "singleplayer": {
1164 "$ref": "#/definitions/controllers.ProfileRankingsDetails"
1165 }
1166 }
1167 },
1168 "controllers.ProfileRankingsDetails": {
1169 "type": "object",
1170 "properties": {
1171 "completion_count": {
1172 "type": "integer"
1173 },
1174 "completion_total": {
1175 "type": "integer"
1176 },
1177 "rank": {
1178 "type": "integer"
1179 }
1180 }
1181 },
1182 "controllers.ProfileRecords": {
1183 "type": "object",
1184 "properties": {
1185 "portal2_cooperative": {
1186 "type": "array",
1187 "items": {
1188 "$ref": "#/definitions/controllers.ProfileRecordsDetails"
1189 }
1190 },
1191 "portal2_singleplayer": {
1192 "type": "array",
1193 "items": {
1194 "$ref": "#/definitions/controllers.ProfileRecordsDetails"
1195 }
1196 }
1197 }
1198 },
1199 "controllers.ProfileRecordsDetails": {
1200 "type": "object",
1201 "properties": {
1202 "map_id": {
1203 "type": "integer"
1204 },
1205 "map_name": {
1206 "type": "string"
1207 },
1208 "scores": {
1209 "type": "array",
1210 "items": {
1211 "$ref": "#/definitions/controllers.ProfileScores"
1212 }
1213 }
1214 }
1215 },
1154 "controllers.ProfileResponse": { 1216 "controllers.ProfileResponse": {
1155 "type": "object", 1217 "type": "object",
1156 "properties": { 1218 "properties": {
@@ -1160,26 +1222,46 @@
1160 "country_code": { 1222 "country_code": {
1161 "type": "string" 1223 "type": "string"
1162 }, 1224 },
1225 "links": {
1226 "$ref": "#/definitions/models.Links"
1227 },
1163 "profile": { 1228 "profile": {
1164 "type": "boolean" 1229 "type": "boolean"
1165 }, 1230 },
1166 "scores_mp": { 1231 "rankings": {
1167 "type": "array", 1232 "$ref": "#/definitions/controllers.ProfileRankings"
1168 "items": { 1233 },
1169 "$ref": "#/definitions/controllers.ScoreResponse" 1234 "records": {
1170 } 1235 "$ref": "#/definitions/controllers.ProfileRecords"
1171 }, 1236 },
1172 "scores_sp": { 1237 "steam_id": {
1238 "type": "string"
1239 },
1240 "titles": {
1173 "type": "array", 1241 "type": "array",
1174 "items": { 1242 "items": {
1175 "$ref": "#/definitions/controllers.ScoreResponse" 1243 "$ref": "#/definitions/models.Title"
1176 } 1244 }
1177 }, 1245 },
1178 "steam_id": { 1246 "user_name": {
1247 "type": "string"
1248 }
1249 }
1250 },
1251 "controllers.ProfileScores": {
1252 "type": "object",
1253 "properties": {
1254 "date": {
1179 "type": "string" 1255 "type": "string"
1180 }, 1256 },
1181 "user_name": { 1257 "demo_id": {
1182 "type": "string" 1258 "type": "string"
1259 },
1260 "score_count": {
1261 "type": "integer"
1262 },
1263 "score_time": {
1264 "type": "integer"
1183 } 1265 }
1184 } 1266 }
1185 }, 1267 },
@@ -1211,15 +1293,6 @@
1211 } 1293 }
1212 } 1294 }
1213 }, 1295 },
1214 "controllers.ScoreResponse": {
1215 "type": "object",
1216 "properties": {
1217 "map_id": {
1218 "type": "integer"
1219 },
1220 "records": {}
1221 }
1222 },
1223 "controllers.SearchResponse": { 1296 "controllers.SearchResponse": {
1224 "type": "object", 1297 "type": "object",
1225 "properties": { 1298 "properties": {
@@ -1273,6 +1346,23 @@
1273 } 1346 }
1274 } 1347 }
1275 }, 1348 },
1349 "models.Links": {
1350 "type": "object",
1351 "properties": {
1352 "p2sr": {
1353 "type": "string"
1354 },
1355 "stream": {
1356 "type": "string"
1357 },
1358 "twitch": {
1359 "type": "string"
1360 },
1361 "youtube": {
1362 "type": "string"
1363 }
1364 }
1365 },
1276 "models.Map": { 1366 "models.Map": {
1277 "type": "object", 1367 "type": "object",
1278 "properties": { 1368 "properties": {
@@ -1373,6 +1463,17 @@
1373 } 1463 }
1374 } 1464 }
1375 }, 1465 },
1466 "models.Title": {
1467 "type": "object",
1468 "properties": {
1469 "color": {
1470 "type": "string"
1471 },
1472 "name": {
1473 "type": "string"
1474 }
1475 }
1476 },
1376 "models.UserRanking": { 1477 "models.UserRanking": {
1377 "type": "object", 1478 "type": "object",
1378 "properties": { 1479 "properties": {