From f04bb43856e72d3c0265bc7e2c38661fac268c7c Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Sun, 24 Sep 2023 12:41:36 +0300 Subject: docs: add delete record, update discussion and main (#56) Former-commit-id: 8abea862f066e06fc31df3d5ddd921334fe76f5c --- docs/swagger.json | 53 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 9 deletions(-) (limited to 'docs/swagger.json') diff --git a/docs/swagger.json b/docs/swagger.json index 226cadd..d118ce7 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -10,8 +10,8 @@ }, "version": "1.0" }, - "host": "lp.ardapektezol.com/api", - "basePath": "/v1", + "host": "lp.ardapektezol.com", + "basePath": "/api/v1", "paths": { "/chapters/{chapterid}": { "get": { @@ -337,13 +337,6 @@ "in": "path", "required": true }, - { - "type": "integer", - "description": "Discussion ID", - "name": "discussionid", - "in": "path", - "required": true - }, { "description": "Body", "name": "request", @@ -707,6 +700,48 @@ } } }, + "/maps/{mapid}/record/{recordid}": { + "delete": { + "description": "Delete record with specified map and record id.", + "produces": [ + "application/json" + ], + "tags": [ + "maps" + ], + "parameters": [ + { + "type": "integer", + "description": "Map ID", + "name": "mapid", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "Record ID", + "name": "recordid", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "JWT Token", + "name": "Authorization", + "in": "header", + "required": true + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/models.Response" + } + } + } + } + }, "/maps/{mapid}/summary": { "get": { "description": "Get map summary with specified id.", -- cgit v1.2.3