You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After annotating the Echo handlers, swag init is able to generate the swagger.json and swagger.yaml file in the docs folder. However when I browse to http://localhost:8080/swagger/index.html
or http://localhost:8080/swagger/v1/index.html
is still showing the default example items. Here is my setup:
// @title Nexlife Reward
// @version 1.0
// @description This is API spec for Nexlife Reward.
// @termsOfService https://tm.com.my/
// @contact.name Azzuwan Aziz
// @contact.url https://tm.com.my/
// @contact.email azzuwan@gmail.com
// @license.name TM Proprietary
// @license.url https://tm.com.my
// @host https://tm.com.my/
// @BasePath /v1
e.GET("/swagger/*", echoSwagger.WrapHandler)
// Create godoc
// @Summary Create a reward transaction
// @Description post a reward transaction
// @Tags transaction
// @Accept json
// @Produce json
// @Param user_id body model.transaction.Transaction.UserID true "ID of the user performing the transaction"
// @Param outlet_id body model.transation.Transaction.OutletID true "ID of the outlet the user is getting the reward"
// @Param point body model.transaction.Transaction.Point true "The value of the reward"
// @Success 200 {object} model.transaction.Transaction
// @Failure 400 {object} config.api.ResponseMessage
// @Failure 404 {object} config.api.ResponseMessage
// @Failure 500 {object} config.api.ResponseMessage
// @Router /transactions [post]
The text was updated successfully, but these errors were encountered:
After annotating the Echo handlers, swag init is able to generate the swagger.json and swagger.yaml file in the docs folder. However when I browse to
http://localhost:8080/swagger/index.html
or
http://localhost:8080/swagger/v1/index.html
is still showing the default example items. Here is my setup:
e.GET("/swagger/*", echoSwagger.WrapHandler)
The text was updated successfully, but these errors were encountered: