From 0ea2d185b8ae6f5f56620e0bb6b087114c5f061f Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 24 Apr 2023 23:12:39 +0300 Subject: doc: update history model (#38) --- docs/docs.go | 25 +++++++++++++++++++++---- docs/swagger.json | 25 +++++++++++++++++++++---- docs/swagger.yaml | 19 +++++++++++++++---- 3 files changed, 57 insertions(+), 12 deletions(-) (limited to 'docs') diff --git a/docs/docs.go b/docs/docs.go index 022814a..9883679 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -620,6 +620,20 @@ const docTemplate = `{ } } }, + "models.MapHistory": { + "type": "object", + "properties": { + "date": { + "type": "string" + }, + "runner_name": { + "type": "string" + }, + "score_count": { + "type": "integer" + } + } + }, "models.MapRecords": { "type": "object", "properties": { @@ -635,8 +649,11 @@ const docTemplate = `{ "description": { "type": "string" }, - "first_completion": { - "type": "string" + "history": { + "type": "array", + "items": { + "$ref": "#/definitions/models.MapHistory" + } }, "rating": { "type": "number" @@ -679,7 +696,7 @@ const docTemplate = `{ "steam_id": { "type": "string" }, - "username": { + "user_name": { "type": "string" } } @@ -754,7 +771,7 @@ const docTemplate = `{ "user_id": { "type": "string" }, - "username": { + "user_name": { "type": "string" } } diff --git a/docs/swagger.json b/docs/swagger.json index 4f3e868..e4bbb59 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -613,6 +613,20 @@ } } }, + "models.MapHistory": { + "type": "object", + "properties": { + "date": { + "type": "string" + }, + "runner_name": { + "type": "string" + }, + "score_count": { + "type": "integer" + } + } + }, "models.MapRecords": { "type": "object", "properties": { @@ -628,8 +642,11 @@ "description": { "type": "string" }, - "first_completion": { - "type": "string" + "history": { + "type": "array", + "items": { + "$ref": "#/definitions/models.MapHistory" + } }, "rating": { "type": "number" @@ -672,7 +689,7 @@ "steam_id": { "type": "string" }, - "username": { + "user_name": { "type": "string" } } @@ -747,7 +764,7 @@ "user_id": { "type": "string" }, - "username": { + "user_name": { "type": "string" } } diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 873dbee..e24ca39 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -28,6 +28,15 @@ definitions: no_sla: type: integer type: object + models.MapHistory: + properties: + date: + type: string + runner_name: + type: string + score_count: + type: integer + type: object models.MapRecords: properties: records: {} @@ -38,8 +47,10 @@ definitions: $ref: '#/definitions/models.MapCategoryScores' description: type: string - first_completion: - type: string + history: + items: + $ref: '#/definitions/models.MapHistory' + type: array rating: type: number routers: @@ -67,7 +78,7 @@ definitions: type: array steam_id: type: string - username: + user_name: type: string type: object models.RankingsResponse: @@ -117,7 +128,7 @@ definitions: type: integer user_id: type: string - username: + user_name: type: string type: object host: lp.ardapektezol.com/api -- cgit v1.2.3