From 34555262c1d6a2dff9e2068019013f700962f13c Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 11 Dec 2023 16:37:24 +0300 Subject: docs: add missing param (#59) --- docs/swagger.json | 33 ++++++++------------------------- 1 file changed, 8 insertions(+), 25 deletions(-) (limited to 'docs/swagger.json') diff --git a/docs/swagger.json b/docs/swagger.json index 043fb6b..32efc4b 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -539,6 +539,13 @@ "in": "path", "required": true }, + { + "type": "integer", + "description": "Discussion ID", + "name": "discussionid", + "in": "path", + "required": true + }, { "description": "Body", "name": "request", @@ -1571,30 +1578,6 @@ } } }, - "handlers.MapDiscussionOnlyTitle": { - "type": "object", - "properties": { - "comments": { - "type": "array", - "items": { - "$ref": "#/definitions/handlers.MapDiscussionComment" - } - }, - "creator": { - "$ref": "#/definitions/models.UserShortWithAvatar" - }, - "id": { - "type": "integer" - }, - "title": { - "type": "string" - }, - "updated_at": { - "description": "Upvotes int `json:\"upvotes\"`", - "type": "string" - } - } - }, "handlers.MapDiscussionResponse": { "type": "object", "properties": { @@ -1609,7 +1592,7 @@ "discussions": { "type": "array", "items": { - "$ref": "#/definitions/handlers.MapDiscussionOnlyTitle" + "$ref": "#/definitions/handlers.MapDiscussion" } } } -- cgit v1.2.3