Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure swagger comments with iris using mvc #12

Open
vperson opened this issue Feb 4, 2021 · 1 comment
Open

How to configure swagger comments with iris using mvc #12

vperson opened this issue Feb 4, 2021 · 1 comment

Comments

@vperson
Copy link

vperson commented Feb 4, 2021

....
	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 {
......
......
}
@argjentsahiti
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants