diff options
Diffstat (limited to '')
| -rw-r--r-- | docs/docs.go | 25 | ||||
| -rw-r--r-- | docs/swagger.json | 25 | ||||
| -rw-r--r-- | docs/swagger.yaml | 17 |
3 files changed, 67 insertions, 0 deletions
diff --git a/docs/docs.go b/docs/docs.go index 01eb022..688d7ed 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -1418,6 +1418,7 @@ const docTemplate = `{ | |||
| 1418 | "category_id", | 1418 | "category_id", |
| 1419 | "description", | 1419 | "description", |
| 1420 | "record_date", | 1420 | "record_date", |
| 1421 | "score_count", | ||
| 1421 | "user_name" | 1422 | "user_name" |
| 1422 | ], | 1423 | ], |
| 1423 | "properties": { | 1424 | "properties": { |
| @@ -1484,6 +1485,7 @@ const docTemplate = `{ | |||
| 1484 | "description", | 1485 | "description", |
| 1485 | "record_date", | 1486 | "record_date", |
| 1486 | "route_id", | 1487 | "route_id", |
| 1488 | "score_count", | ||
| 1487 | "user_name" | 1489 | "user_name" |
| 1488 | ], | 1490 | ], |
| 1489 | "properties": { | 1491 | "properties": { |
| @@ -1863,6 +1865,17 @@ const docTemplate = `{ | |||
| 1863 | } | 1865 | } |
| 1864 | } | 1866 | } |
| 1865 | }, | 1867 | }, |
| 1868 | "models.CategoryPortal": { | ||
| 1869 | "type": "object", | ||
| 1870 | "properties": { | ||
| 1871 | "category": { | ||
| 1872 | "$ref": "#/definitions/models.Category" | ||
| 1873 | }, | ||
| 1874 | "portal_count": { | ||
| 1875 | "type": "integer" | ||
| 1876 | } | ||
| 1877 | } | ||
| 1878 | }, | ||
| 1866 | "models.Chapter": { | 1879 | "models.Chapter": { |
| 1867 | "type": "object", | 1880 | "type": "object", |
| 1868 | "properties": { | 1881 | "properties": { |
| @@ -1883,6 +1896,12 @@ const docTemplate = `{ | |||
| 1883 | "models.Game": { | 1896 | "models.Game": { |
| 1884 | "type": "object", | 1897 | "type": "object", |
| 1885 | "properties": { | 1898 | "properties": { |
| 1899 | "category_portals": { | ||
| 1900 | "type": "array", | ||
| 1901 | "items": { | ||
| 1902 | "$ref": "#/definitions/models.CategoryPortal" | ||
| 1903 | } | ||
| 1904 | }, | ||
| 1886 | "id": { | 1905 | "id": { |
| 1887 | "type": "integer" | 1906 | "type": "integer" |
| 1888 | }, | 1907 | }, |
| @@ -1983,6 +2002,9 @@ const docTemplate = `{ | |||
| 1983 | "models.MapShort": { | 2002 | "models.MapShort": { |
| 1984 | "type": "object", | 2003 | "type": "object", |
| 1985 | "properties": { | 2004 | "properties": { |
| 2005 | "difficulty": { | ||
| 2006 | "type": "integer" | ||
| 2007 | }, | ||
| 1986 | "id": { | 2008 | "id": { |
| 1987 | "type": "integer" | 2009 | "type": "integer" |
| 1988 | }, | 2010 | }, |
| @@ -1994,6 +2016,9 @@ const docTemplate = `{ | |||
| 1994 | }, | 2016 | }, |
| 1995 | "name": { | 2017 | "name": { |
| 1996 | "type": "string" | 2018 | "type": "string" |
| 2019 | }, | ||
| 2020 | "portal_count": { | ||
| 2021 | "type": "integer" | ||
| 1997 | } | 2022 | } |
| 1998 | } | 2023 | } |
| 1999 | }, | 2024 | }, |
diff --git a/docs/swagger.json b/docs/swagger.json index e2e842f..6fe6320 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -1412,6 +1412,7 @@ | |||
| 1412 | "category_id", | 1412 | "category_id", |
| 1413 | "description", | 1413 | "description", |
| 1414 | "record_date", | 1414 | "record_date", |
| 1415 | "score_count", | ||
| 1415 | "user_name" | 1416 | "user_name" |
| 1416 | ], | 1417 | ], |
| 1417 | "properties": { | 1418 | "properties": { |
| @@ -1478,6 +1479,7 @@ | |||
| 1478 | "description", | 1479 | "description", |
| 1479 | "record_date", | 1480 | "record_date", |
| 1480 | "route_id", | 1481 | "route_id", |
| 1482 | "score_count", | ||
| 1481 | "user_name" | 1483 | "user_name" |
| 1482 | ], | 1484 | ], |
| 1483 | "properties": { | 1485 | "properties": { |
| @@ -1857,6 +1859,17 @@ | |||
| 1857 | } | 1859 | } |
| 1858 | } | 1860 | } |
| 1859 | }, | 1861 | }, |
| 1862 | "models.CategoryPortal": { | ||
| 1863 | "type": "object", | ||
| 1864 | "properties": { | ||
| 1865 | "category": { | ||
| 1866 | "$ref": "#/definitions/models.Category" | ||
| 1867 | }, | ||
| 1868 | "portal_count": { | ||
| 1869 | "type": "integer" | ||
| 1870 | } | ||
| 1871 | } | ||
| 1872 | }, | ||
| 1860 | "models.Chapter": { | 1873 | "models.Chapter": { |
| 1861 | "type": "object", | 1874 | "type": "object", |
| 1862 | "properties": { | 1875 | "properties": { |
| @@ -1877,6 +1890,12 @@ | |||
| 1877 | "models.Game": { | 1890 | "models.Game": { |
| 1878 | "type": "object", | 1891 | "type": "object", |
| 1879 | "properties": { | 1892 | "properties": { |
| 1893 | "category_portals": { | ||
| 1894 | "type": "array", | ||
| 1895 | "items": { | ||
| 1896 | "$ref": "#/definitions/models.CategoryPortal" | ||
| 1897 | } | ||
| 1898 | }, | ||
| 1880 | "id": { | 1899 | "id": { |
| 1881 | "type": "integer" | 1900 | "type": "integer" |
| 1882 | }, | 1901 | }, |
| @@ -1977,6 +1996,9 @@ | |||
| 1977 | "models.MapShort": { | 1996 | "models.MapShort": { |
| 1978 | "type": "object", | 1997 | "type": "object", |
| 1979 | "properties": { | 1998 | "properties": { |
| 1999 | "difficulty": { | ||
| 2000 | "type": "integer" | ||
| 2001 | }, | ||
| 1980 | "id": { | 2002 | "id": { |
| 1981 | "type": "integer" | 2003 | "type": "integer" |
| 1982 | }, | 2004 | }, |
| @@ -1988,6 +2010,9 @@ | |||
| 1988 | }, | 2010 | }, |
| 1989 | "name": { | 2011 | "name": { |
| 1990 | "type": "string" | 2012 | "type": "string" |
| 2013 | }, | ||
| 2014 | "portal_count": { | ||
| 2015 | "type": "integer" | ||
| 1991 | } | 2016 | } |
| 1992 | } | 2017 | } |
| 1993 | }, | 2018 | }, |
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 7f370ee..6041c1d 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -53,6 +53,7 @@ definitions: | |||
| 53 | - category_id | 53 | - category_id |
| 54 | - description | 54 | - description |
| 55 | - record_date | 55 | - record_date |
| 56 | - score_count | ||
| 56 | - user_name | 57 | - user_name |
| 57 | type: object | 58 | type: object |
| 58 | handlers.DeleteMapSummaryRequest: | 59 | handlers.DeleteMapSummaryRequest: |
| @@ -97,6 +98,7 @@ definitions: | |||
| 97 | - description | 98 | - description |
| 98 | - record_date | 99 | - record_date |
| 99 | - route_id | 100 | - route_id |
| 101 | - score_count | ||
| 100 | - user_name | 102 | - user_name |
| 101 | type: object | 103 | type: object |
| 102 | handlers.LoginResponse: | 104 | handlers.LoginResponse: |
| @@ -330,6 +332,13 @@ definitions: | |||
| 330 | name: | 332 | name: |
| 331 | type: string | 333 | type: string |
| 332 | type: object | 334 | type: object |
| 335 | models.CategoryPortal: | ||
| 336 | properties: | ||
| 337 | category: | ||
| 338 | $ref: '#/definitions/models.Category' | ||
| 339 | portal_count: | ||
| 340 | type: integer | ||
| 341 | type: object | ||
| 333 | models.Chapter: | 342 | models.Chapter: |
| 334 | properties: | 343 | properties: |
| 335 | id: | 344 | id: |
| @@ -343,6 +352,10 @@ definitions: | |||
| 343 | type: object | 352 | type: object |
| 344 | models.Game: | 353 | models.Game: |
| 345 | properties: | 354 | properties: |
| 355 | category_portals: | ||
| 356 | items: | ||
| 357 | $ref: '#/definitions/models.CategoryPortal' | ||
| 358 | type: array | ||
| 346 | id: | 359 | id: |
| 347 | type: integer | 360 | type: integer |
| 348 | image: | 361 | image: |
| @@ -408,6 +421,8 @@ definitions: | |||
| 408 | type: object | 421 | type: object |
| 409 | models.MapShort: | 422 | models.MapShort: |
| 410 | properties: | 423 | properties: |
| 424 | difficulty: | ||
| 425 | type: integer | ||
| 411 | id: | 426 | id: |
| 412 | type: integer | 427 | type: integer |
| 413 | image: | 428 | image: |
| @@ -416,6 +431,8 @@ definitions: | |||
| 416 | type: boolean | 431 | type: boolean |
| 417 | name: | 432 | name: |
| 418 | type: string | 433 | type: string |
| 434 | portal_count: | ||
| 435 | type: integer | ||
| 419 | type: object | 436 | type: object |
| 420 | models.MapSummary: | 437 | models.MapSummary: |
| 421 | properties: | 438 | properties: |