add swagger

This commit is contained in:
Fran Jurmanović
2024-07-11 18:49:14 +02:00
parent df70999d13
commit 8307a60913
9 changed files with 249 additions and 10 deletions

View File

@@ -32,12 +32,13 @@ func NewApiController(as *service.ApiService, routeGroups *common.RouteGroups) *
return ac
}
/*
getFirst
Args:
*fiber.Ctx: Fiber Application Context
*/
// ROUTE (GET /api).
// getFirst returns API
//
// @Summary Return API
// @Description Return API
// @Tags api
// @Success 200 {array} string
// @Router /v1/api [get]
func (ac *ApiController) getFirst(c *fiber.Ctx) error {
apiModel := ac.service.GetFirst(c)
return c.SendString(apiModel)