swagger icon indicating copy to clipboard operation
swagger copied to clipboard

How to configure swagger comments with iris using mvc

Open vperson opened this issue 3 years ago • 1 comments

....
	mvc.Configure(app.Party("/api/v1"), func(m *mvc.Application) {
		m.Party("/test").Handle(new(v1.Test))
		m.Party("/xiaomai").Handle(new(v1.XiaoMai))
	})
.....
type XiaoMai  struct {
	Ctx iris.Context
}

// @Summary
// @Produce json
// @Param text string true "text"
// @Success 200 {object} restful.JsonResult
// @Failure 500 {object} restful.JsonResult
// @Router /api/v1/tiktok/parse/video
func (t *XiaoMai) PostParseVideo() *restful.JsonResult {
......
......
}

vperson avatar Feb 04 '21 02:02 vperson

This is needed because mvc is not currently supported by this package

argjentsahiti avatar Sep 25 '22 03:09 argjentsahiti