From f3b4838e255745cdc3dec368ed29e5b321dedc8b Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 29 Jun 2023 19:40:07 +0300 Subject: docs: add jwt token requirements Former-commit-id: e5b56433686e2180a99293f0ddf339e70b304c67 --- backend/controllers/modController.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend/controllers') 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 ( // @Summary Create map summary with specified map id. // @Tags maps // @Produce json +// @Param Authorization header string true "JWT Token" // @Param id path int true "Map ID" // @Param request body models.CreateMapSummaryRequest true "Body" // @Success 200 {object} models.Response{data=models.CreateMapSummaryRequest} @@ -99,6 +100,7 @@ func CreateMapSummary(c *gin.Context) { // @Summary Edit map summary with specified map id. // @Tags maps // @Produce json +// @Param Authorization header string true "JWT Token" // @Param id path int true "Map ID" // @Param request body models.EditMapSummaryRequest true "Body" // @Success 200 {object} models.Response{data=models.EditMapSummaryRequest} @@ -181,6 +183,7 @@ func EditMapSummary(c *gin.Context) { // @Summary Delete map summary with specified map id. // @Tags maps // @Produce json +// @Param Authorization header string true "JWT Token" // @Param id path int true "Map ID" // @Param request body models.DeleteMapSummaryRequest true "Body" // @Success 200 {object} models.Response{data=models.DeleteMapSummaryRequest} -- cgit v1.2.3