From 9fade13368c732401030d392ef2332279716243e Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Wed, 19 Apr 2023 14:14:11 +0300 Subject: doc: complete rest of swagger implementation, change rankings response (#34) --- backend/controllers/mapController.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'backend/controllers/mapController.go') diff --git a/backend/controllers/mapController.go b/backend/controllers/mapController.go index 4c57971..1560441 100644 --- a/backend/controllers/mapController.go +++ b/backend/controllers/mapController.go @@ -9,6 +9,15 @@ import ( "github.com/pektezol/leastportals/backend/models" ) +// GET Map +// +// @Summary Get map page with specified id. +// @Accept json +// @Produce json +// @Param id path int true "Map ID" +// @Success 200 {object} models.Response{data=models.Map} +// @Failure 400 {object} models.Response +// @Router /maps/{id} [get] func FetchMap(c *gin.Context) { id := c.Param("id") // Get map data -- cgit v1.2.3