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/swagger.json | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to 'docs/swagger.json') 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" } } -- cgit v1.2.3