From 64e42226f73f2bd62cfc9881a5803f125c3e1032 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 24 Apr 2023 14:41:27 +0300 Subject: doc: fix demo download uuid from path to query --- backend/controllers/recordController.go | 2 +- docs/docs.go | 2 +- docs/swagger.json | 2 +- docs/swagger.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/controllers/recordController.go b/backend/controllers/recordController.go index 3b4bdc7..e3120c9 100644 --- a/backend/controllers/recordController.go +++ b/backend/controllers/recordController.go @@ -198,7 +198,7 @@ func CreateRecordWithDemo(c *gin.Context) { // @Tags demo // @Accept json // @Produce octet-stream -// @Param uuid path int true "Demo UUID" +// @Param uuid query int true "Demo UUID" // @Success 200 {file} binary "Demo File" // @Failure 400 {object} models.Response // @Router /demo [get] diff --git a/docs/docs.go b/docs/docs.go index f37cda2..b708f2b 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -37,7 +37,7 @@ const docTemplate = `{ "type": "integer", "description": "Demo UUID", "name": "uuid", - "in": "path", + "in": "query", "required": true } ], diff --git a/docs/swagger.json b/docs/swagger.json index 9ed27d5..abdd6a8 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -30,7 +30,7 @@ "type": "integer", "description": "Demo UUID", "name": "uuid", - "in": "path", + "in": "query", "required": true } ], diff --git a/docs/swagger.yaml b/docs/swagger.yaml index c134197..16e5eab 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -106,7 +106,7 @@ paths: - application/json parameters: - description: Demo UUID - in: path + in: query name: uuid required: true type: integer -- cgit v1.2.3