Closed pedromassango closed 2 years ago
Here is a preview of one of my functions:
// @BasePath /api/v1
// @description Authenticate the user in the system.
// @tags example
// @accept json
// @produce json
// @success 200 {string} Helloworld
// @Router /auth/login [post]
func Login(c *gin.Context) {
c.JSON(http.StatusOK, "Success")
}
Hi there. In my code everything seems to be in place (I can invoke all other endpoints but the swagger does not work.
Here is my main.go file:
Please note that the docs has been generated successfully:
My swagger.json
My swagger.yaml
Am I missing something?