aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-04-24 14:41:27 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-04-24 14:41:27 +0300
commit64e42226f73f2bd62cfc9881a5803f125c3e1032 (patch)
treef99ee986a541332604bfa3c8cccdfc5295c82556
parentdoc: added tags (diff)
downloadlphub-64e42226f73f2bd62cfc9881a5803f125c3e1032.tar.gz
lphub-64e42226f73f2bd62cfc9881a5803f125c3e1032.tar.bz2
lphub-64e42226f73f2bd62cfc9881a5803f125c3e1032.zip
doc: fix demo download uuid from path to query
-rw-r--r--backend/controllers/recordController.go2
-rw-r--r--docs/docs.go2
-rw-r--r--docs/swagger.json2
-rw-r--r--docs/swagger.yaml2
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) {
198// @Tags demo 198// @Tags demo
199// @Accept json 199// @Accept json
200// @Produce octet-stream 200// @Produce octet-stream
201// @Param uuid path int true "Demo UUID" 201// @Param uuid query int true "Demo UUID"
202// @Success 200 {file} binary "Demo File" 202// @Success 200 {file} binary "Demo File"
203// @Failure 400 {object} models.Response 203// @Failure 400 {object} models.Response
204// @Router /demo [get] 204// @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 = `{
37 "type": "integer", 37 "type": "integer",
38 "description": "Demo UUID", 38 "description": "Demo UUID",
39 "name": "uuid", 39 "name": "uuid",
40 "in": "path", 40 "in": "query",
41 "required": true 41 "required": true
42 } 42 }
43 ], 43 ],
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 @@
30 "type": "integer", 30 "type": "integer",
31 "description": "Demo UUID", 31 "description": "Demo UUID",
32 "name": "uuid", 32 "name": "uuid",
33 "in": "path", 33 "in": "query",
34 "required": true 34 "required": true
35 } 35 }
36 ], 36 ],
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:
106 - application/json 106 - application/json
107 parameters: 107 parameters:
108 - description: Demo UUID 108 - description: Demo UUID
109 in: path 109 in: query
110 name: uuid 110 name: uuid
111 required: true 111 required: true
112 type: integer 112 type: integer