aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-07-03 19:52:42 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-07-03 19:52:42 +0300
commit4a5a3f13a7b644decb804bc1e1507dda14477205 (patch)
tree8b5afdfb2d2dea6814809893092ac4b6f40b8c78
parentfix: sql typo record controller (diff)
downloadlphub-4a5a3f13a7b644decb804bc1e1507dda14477205.tar.gz
lphub-4a5a3f13a7b644decb804bc1e1507dda14477205.tar.bz2
lphub-4a5a3f13a7b644decb804bc1e1507dda14477205.zip
docs: add missing field to post record
Former-commit-id: 73726de788daf38a82d9663ab2d8f0544b76c3e3
Diffstat (limited to '')
-rw-r--r--backend/controllers/recordController.go1
-rw-r--r--docs/docs.go7
-rw-r--r--docs/swagger.json7
-rw-r--r--docs/swagger.yaml5
4 files changed, 20 insertions, 0 deletions
diff --git a/backend/controllers/recordController.go b/backend/controllers/recordController.go
index 101f0e4..6751afc 100644
--- a/backend/controllers/recordController.go
+++ b/backend/controllers/recordController.go
@@ -25,6 +25,7 @@ import (
25// @Tags maps 25// @Tags maps
26// @Accept mpfd 26// @Accept mpfd
27// @Produce json 27// @Produce json
28// @Param id path int true "Map ID"
28// @Param Authorization header string true "JWT Token" 29// @Param Authorization header string true "JWT Token"
29// @Param host_demo formData file true "Host Demo" 30// @Param host_demo formData file true "Host Demo"
30// @Param partner_demo formData file false "Partner Demo" 31// @Param partner_demo formData file false "Partner Demo"
diff --git a/docs/docs.go b/docs/docs.go
index 41acab3..bb14382 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -338,6 +338,13 @@ const docTemplate = `{
338 "summary": "Post record with demo of a specific map.", 338 "summary": "Post record with demo of a specific map.",
339 "parameters": [ 339 "parameters": [
340 { 340 {
341 "type": "integer",
342 "description": "Map ID",
343 "name": "id",
344 "in": "path",
345 "required": true
346 },
347 {
341 "type": "string", 348 "type": "string",
342 "description": "JWT Token", 349 "description": "JWT Token",
343 "name": "Authorization", 350 "name": "Authorization",
diff --git a/docs/swagger.json b/docs/swagger.json
index 3ec06b6..3530d2c 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -331,6 +331,13 @@
331 "summary": "Post record with demo of a specific map.", 331 "summary": "Post record with demo of a specific map.",
332 "parameters": [ 332 "parameters": [
333 { 333 {
334 "type": "integer",
335 "description": "Map ID",
336 "name": "id",
337 "in": "path",
338 "required": true
339 },
340 {
334 "type": "string", 341 "type": "string",
335 "description": "JWT Token", 342 "description": "JWT Token",
336 "name": "Authorization", 343 "name": "Authorization",
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 3fe5d66..d4420e2 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -422,6 +422,11 @@ paths:
422 consumes: 422 consumes:
423 - multipart/form-data 423 - multipart/form-data
424 parameters: 424 parameters:
425 - description: Map ID
426 in: path
427 name: id
428 required: true
429 type: integer
425 - description: JWT Token 430 - description: JWT Token
426 in: header 431 in: header
427 name: Authorization 432 name: Authorization