Skip to content

How to configure swagger comments with iris using mvc #12

@vperson

Description

@vperson
....
	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 {
......
......
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions