aboutsummaryrefslogtreecommitdiff
path: root/backend/controllers
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-06-29 19:40:07 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-06-29 19:40:07 +0300
commitf3b4838e255745cdc3dec368ed29e5b321dedc8b (patch)
treeae634de28ac524a022ca702009b6625940380927 /backend/controllers
parentdocs: fix delete map summary (diff)
downloadlphub-f3b4838e255745cdc3dec368ed29e5b321dedc8b.tar.gz
lphub-f3b4838e255745cdc3dec368ed29e5b321dedc8b.tar.bz2
lphub-f3b4838e255745cdc3dec368ed29e5b321dedc8b.zip
docs: add jwt token requirements
Former-commit-id: e5b56433686e2180a99293f0ddf339e70b304c67
Diffstat (limited to 'backend/controllers')
-rw-r--r--backend/controllers/modController.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/controllers/modController.go b/backend/controllers/modController.go
index a8e0786..b26f1ae 100644
--- a/backend/controllers/modController.go
+++ b/backend/controllers/modController.go
@@ -14,6 +14,7 @@ import (
14// @Summary Create map summary with specified map id. 14// @Summary Create map summary with specified map id.
15// @Tags maps 15// @Tags maps
16// @Produce json 16// @Produce json
17// @Param Authorization header string true "JWT Token"
17// @Param id path int true "Map ID" 18// @Param id path int true "Map ID"
18// @Param request body models.CreateMapSummaryRequest true "Body" 19// @Param request body models.CreateMapSummaryRequest true "Body"
19// @Success 200 {object} models.Response{data=models.CreateMapSummaryRequest} 20// @Success 200 {object} models.Response{data=models.CreateMapSummaryRequest}
@@ -99,6 +100,7 @@ func CreateMapSummary(c *gin.Context) {
99// @Summary Edit map summary with specified map id. 100// @Summary Edit map summary with specified map id.
100// @Tags maps 101// @Tags maps
101// @Produce json 102// @Produce json
103// @Param Authorization header string true "JWT Token"
102// @Param id path int true "Map ID" 104// @Param id path int true "Map ID"
103// @Param request body models.EditMapSummaryRequest true "Body" 105// @Param request body models.EditMapSummaryRequest true "Body"
104// @Success 200 {object} models.Response{data=models.EditMapSummaryRequest} 106// @Success 200 {object} models.Response{data=models.EditMapSummaryRequest}
@@ -181,6 +183,7 @@ func EditMapSummary(c *gin.Context) {
181// @Summary Delete map summary with specified map id. 183// @Summary Delete map summary with specified map id.
182// @Tags maps 184// @Tags maps
183// @Produce json 185// @Produce json
186// @Param Authorization header string true "JWT Token"
184// @Param id path int true "Map ID" 187// @Param id path int true "Map ID"
185// @Param request body models.DeleteMapSummaryRequest true "Body" 188// @Param request body models.DeleteMapSummaryRequest true "Body"
186// @Success 200 {object} models.Response{data=models.DeleteMapSummaryRequest} 189// @Success 200 {object} models.Response{data=models.DeleteMapSummaryRequest}