aboutsummaryrefslogtreecommitdiff
path: root/backend/docs/swagger.json
diff options
context:
space:
mode:
Diffstat (limited to 'backend/docs/swagger.json')
-rw-r--r--backend/docs/swagger.json148
1 files changed, 105 insertions, 43 deletions
diff --git a/backend/docs/swagger.json b/backend/docs/swagger.json
index 6c10cfc..981d017 100644
--- a/backend/docs/swagger.json
+++ b/backend/docs/swagger.json
@@ -244,37 +244,6 @@
244 } 244 }
245 } 245 }
246 }, 246 },
247 "/logs/score": {
248 "get": {
249 "description": "Get score logs of every player.",
250 "produces": [
251 "application/json"
252 ],
253 "tags": [
254 "logs"
255 ],
256 "responses": {
257 "200": {
258 "description": "OK",
259 "schema": {
260 "allOf": [
261 {
262 "$ref": "#/definitions/models.Response"
263 },
264 {
265 "type": "object",
266 "properties": {
267 "data": {
268 "$ref": "#/definitions/handlers.ScoreLogsResponse"
269 }
270 }
271 }
272 ]
273 }
274 }
275 }
276 }
277 },
278 "/maps/{mapid}/discussions": { 247 "/maps/{mapid}/discussions": {
279 "get": { 248 "get": {
280 "description": "Get map discussions with specified map id.", 249 "description": "Get map discussions with specified map id.",
@@ -1214,6 +1183,68 @@
1214 } 1183 }
1215 } 1184 }
1216 }, 1185 },
1186 "/stats/scores": {
1187 "get": {
1188 "description": "Get score logs of every player.",
1189 "produces": [
1190 "application/json"
1191 ],
1192 "tags": [
1193 "stats"
1194 ],
1195 "responses": {
1196 "200": {
1197 "description": "OK",
1198 "schema": {
1199 "allOf": [
1200 {
1201 "$ref": "#/definitions/models.Response"
1202 },
1203 {
1204 "type": "object",
1205 "properties": {
1206 "data": {
1207 "$ref": "#/definitions/handlers.ScoresResponse"
1208 }
1209 }
1210 }
1211 ]
1212 }
1213 }
1214 }
1215 }
1216 },
1217 "/stats/timeline": {
1218 "get": {
1219 "description": "Get the history of portal count world records over time.",
1220 "produces": [
1221 "application/json"
1222 ],
1223 "tags": [
1224 "stats"
1225 ],
1226 "responses": {
1227 "200": {
1228 "description": "OK",
1229 "schema": {
1230 "allOf": [
1231 {
1232 "$ref": "#/definitions/models.Response"
1233 },
1234 {
1235 "type": "object",
1236 "properties": {
1237 "data": {
1238 "$ref": "#/definitions/handlers.TimelineResponse"
1239 }
1240 }
1241 }
1242 ]
1243 }
1244 }
1245 }
1246 }
1247 },
1217 "/token": { 1248 "/token": {
1218 "get": { 1249 "get": {
1219 "description": "Gets the token cookie value from the user.", 1250 "description": "Gets the token cookie value from the user.",
@@ -1768,18 +1799,7 @@
1768 } 1799 }
1769 } 1800 }
1770 }, 1801 },
1771 "handlers.ScoreLogsResponse": { 1802 "handlers.ScoresDetails": {
1772 "type": "object",
1773 "properties": {
1774 "scores": {
1775 "type": "array",
1776 "items": {
1777 "$ref": "#/definitions/handlers.ScoreLogsResponseDetails"
1778 }
1779 }
1780 }
1781 },
1782 "handlers.ScoreLogsResponseDetails": {
1783 "type": "object", 1803 "type": "object",
1784 "properties": { 1804 "properties": {
1785 "date": { 1805 "date": {
@@ -1805,6 +1825,17 @@
1805 } 1825 }
1806 } 1826 }
1807 }, 1827 },
1828 "handlers.ScoresResponse": {
1829 "type": "object",
1830 "properties": {
1831 "scores": {
1832 "type": "array",
1833 "items": {
1834 "$ref": "#/definitions/handlers.ScoresDetails"
1835 }
1836 }
1837 }
1838 },
1808 "handlers.SearchResponse": { 1839 "handlers.SearchResponse": {
1809 "type": "object", 1840 "type": "object",
1810 "properties": { 1841 "properties": {
@@ -1854,6 +1885,34 @@
1854 } 1885 }
1855 } 1886 }
1856 }, 1887 },
1888 "handlers.TimelinePoint": {
1889 "type": "object",
1890 "properties": {
1891 "count": {
1892 "type": "integer"
1893 },
1894 "date": {
1895 "type": "string"
1896 }
1897 }
1898 },
1899 "handlers.TimelineResponse": {
1900 "type": "object",
1901 "properties": {
1902 "timeline_multiplayer": {
1903 "type": "array",
1904 "items": {
1905 "$ref": "#/definitions/handlers.TimelinePoint"
1906 }
1907 },
1908 "timeline_singleplayer": {
1909 "type": "array",
1910 "items": {
1911 "$ref": "#/definitions/handlers.TimelinePoint"
1912 }
1913 }
1914 }
1915 },
1857 "models.Category": { 1916 "models.Category": {
1858 "type": "object", 1917 "type": "object",
1859 "properties": { 1918 "properties": {
@@ -1939,6 +1998,9 @@
1939 "chapter_name": { 1998 "chapter_name": {
1940 "type": "string" 1999 "type": "string"
1941 }, 2000 },
2001 "difficulty": {
2002 "type": "integer"
2003 },
1942 "game_name": { 2004 "game_name": {
1943 "type": "string" 2005 "type": "string"
1944 }, 2006 },