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.yaml | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) (limited to 'docs/swagger.yaml') diff --git a/docs/swagger.yaml b/docs/swagger.yaml index b20f762..3e83fe8 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1,4 +1,4 @@ -basePath: /v1 +basePath: /api/v1 definitions: handlers.ChapterMapsResponse: properties: @@ -462,7 +462,7 @@ definitions: user_name: type: string type: object -host: lp.ardapektezol.com/api +host: lp.ardapektezol.com info: contact: {} description: Backend API endpoints for the Least Portals Database. @@ -660,11 +660,6 @@ paths: name: mapid required: true type: integer - - description: Discussion ID - in: path - name: discussionid - required: true - type: integer - description: Body in: body name: request @@ -890,6 +885,34 @@ paths: type: object tags: - maps + /maps/{mapid}/record/{recordid}: + delete: + description: Delete record with specified map and record id. + parameters: + - description: Map ID + in: path + name: mapid + required: true + type: integer + - description: Record ID + in: path + name: recordid + required: true + type: integer + - description: JWT Token + in: header + name: Authorization + required: true + type: string + produces: + - application/json + responses: + "200": + description: OK + schema: + $ref: '#/definitions/models.Response' + tags: + - maps /maps/{mapid}/summary: delete: description: Delete map summary with specified map id. -- cgit v1.2.3