diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-03 13:31:45 +0300 |
|---|---|---|
| committer | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2023-09-03 13:31:45 +0300 |
| commit | e84def27c803fc8982bdd21077a43967ab6031df (patch) | |
| tree | 3ab9725f993c31bc1fea0cfdd186bba957a1d526 | |
| parent | docs: update swagger for changed models (diff) | |
| download | lphub-e84def27c803fc8982bdd21077a43967ab6031df.tar.gz lphub-e84def27c803fc8982bdd21077a43967ab6031df.tar.bz2 lphub-e84def27c803fc8982bdd21077a43967ab6031df.zip | |
docs: update log response type
Former-commit-id: 8e2be25b6ce30d3f42b388b7c67ee14e230cce80
| -rw-r--r-- | docs/docs.go | 27 | ||||
| -rw-r--r-- | docs/swagger.json | 27 | ||||
| -rw-r--r-- | docs/swagger.yaml | 18 |
3 files changed, 69 insertions, 3 deletions
diff --git a/docs/docs.go b/docs/docs.go index 60a39bf..4129343 100644 --- a/docs/docs.go +++ b/docs/docs.go | |||
| @@ -259,7 +259,7 @@ const docTemplate = `{ | |||
| 259 | "type": "object", | 259 | "type": "object", |
| 260 | "properties": { | 260 | "properties": { |
| 261 | "data": { | 261 | "data": { |
| 262 | "$ref": "#/definitions/handlers.ScoreLogsResponse" | 262 | "$ref": "#/definitions/handlers.LogsResponse" |
| 263 | } | 263 | } |
| 264 | } | 264 | } |
| 265 | } | 265 | } |
| @@ -1218,6 +1218,31 @@ const docTemplate = `{ | |||
| 1218 | } | 1218 | } |
| 1219 | } | 1219 | } |
| 1220 | }, | 1220 | }, |
| 1221 | "handlers.LogsResponse": { | ||
| 1222 | "type": "object", | ||
| 1223 | "properties": { | ||
| 1224 | "logs": { | ||
| 1225 | "type": "array", | ||
| 1226 | "items": { | ||
| 1227 | "$ref": "#/definitions/handlers.LogsResponseDetails" | ||
| 1228 | } | ||
| 1229 | } | ||
| 1230 | } | ||
| 1231 | }, | ||
| 1232 | "handlers.LogsResponseDetails": { | ||
| 1233 | "type": "object", | ||
| 1234 | "properties": { | ||
| 1235 | "date": { | ||
| 1236 | "type": "string" | ||
| 1237 | }, | ||
| 1238 | "detail": { | ||
| 1239 | "type": "string" | ||
| 1240 | }, | ||
| 1241 | "user": { | ||
| 1242 | "$ref": "#/definitions/models.UserShort" | ||
| 1243 | } | ||
| 1244 | } | ||
| 1245 | }, | ||
| 1221 | "handlers.MapLeaderboardsResponse": { | 1246 | "handlers.MapLeaderboardsResponse": { |
| 1222 | "type": "object", | 1247 | "type": "object", |
| 1223 | "properties": { | 1248 | "properties": { |
diff --git a/docs/swagger.json b/docs/swagger.json index bba8488..646da0f 100644 --- a/docs/swagger.json +++ b/docs/swagger.json | |||
| @@ -252,7 +252,7 @@ | |||
| 252 | "type": "object", | 252 | "type": "object", |
| 253 | "properties": { | 253 | "properties": { |
| 254 | "data": { | 254 | "data": { |
| 255 | "$ref": "#/definitions/handlers.ScoreLogsResponse" | 255 | "$ref": "#/definitions/handlers.LogsResponse" |
| 256 | } | 256 | } |
| 257 | } | 257 | } |
| 258 | } | 258 | } |
| @@ -1211,6 +1211,31 @@ | |||
| 1211 | } | 1211 | } |
| 1212 | } | 1212 | } |
| 1213 | }, | 1213 | }, |
| 1214 | "handlers.LogsResponse": { | ||
| 1215 | "type": "object", | ||
| 1216 | "properties": { | ||
| 1217 | "logs": { | ||
| 1218 | "type": "array", | ||
| 1219 | "items": { | ||
| 1220 | "$ref": "#/definitions/handlers.LogsResponseDetails" | ||
| 1221 | } | ||
| 1222 | } | ||
| 1223 | } | ||
| 1224 | }, | ||
| 1225 | "handlers.LogsResponseDetails": { | ||
| 1226 | "type": "object", | ||
| 1227 | "properties": { | ||
| 1228 | "date": { | ||
| 1229 | "type": "string" | ||
| 1230 | }, | ||
| 1231 | "detail": { | ||
| 1232 | "type": "string" | ||
| 1233 | }, | ||
| 1234 | "user": { | ||
| 1235 | "$ref": "#/definitions/models.UserShort" | ||
| 1236 | } | ||
| 1237 | } | ||
| 1238 | }, | ||
| 1214 | "handlers.MapLeaderboardsResponse": { | 1239 | "handlers.MapLeaderboardsResponse": { |
| 1215 | "type": "object", | 1240 | "type": "object", |
| 1216 | "properties": { | 1241 | "properties": { |
diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 166f960..6b1e6ea 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml | |||
| @@ -79,6 +79,22 @@ definitions: | |||
| 79 | token: | 79 | token: |
| 80 | type: string | 80 | type: string |
| 81 | type: object | 81 | type: object |
| 82 | handlers.LogsResponse: | ||
| 83 | properties: | ||
| 84 | logs: | ||
| 85 | items: | ||
| 86 | $ref: '#/definitions/handlers.LogsResponseDetails' | ||
| 87 | type: array | ||
| 88 | type: object | ||
| 89 | handlers.LogsResponseDetails: | ||
| 90 | properties: | ||
| 91 | date: | ||
| 92 | type: string | ||
| 93 | detail: | ||
| 94 | type: string | ||
| 95 | user: | ||
| 96 | $ref: '#/definitions/models.UserShort' | ||
| 97 | type: object | ||
| 82 | handlers.MapLeaderboardsResponse: | 98 | handlers.MapLeaderboardsResponse: |
| 83 | properties: | 99 | properties: |
| 84 | map: | 100 | map: |
| @@ -489,7 +505,7 @@ paths: | |||
| 489 | - $ref: '#/definitions/models.Response' | 505 | - $ref: '#/definitions/models.Response' |
| 490 | - properties: | 506 | - properties: |
| 491 | data: | 507 | data: |
| 492 | $ref: '#/definitions/handlers.ScoreLogsResponse' | 508 | $ref: '#/definitions/handlers.LogsResponse' |
| 493 | type: object | 509 | type: object |
| 494 | "400": | 510 | "400": |
| 495 | description: Bad Request | 511 | description: Bad Request |