Swag: Support Fiber web framework?

Created on 18 Feb 2020  路  3Comments  路  Source: swaggo/swag

Is your feature request related to a problem? Please describe.
No problem, just request to add new web framework.

Describe the solution you'd like
Would be great to add Fiber web framework to supported list.

Describe alternatives you've considered
No.

Additional context
No.

help wanted

Most helpful comment

also need

All 3 comments

also need

My example:


func setupSwagger(app *fiber.App) {
    j := docs.OpenAPI()
    app.Get("/swagger/doc.json", func(ctx *fiber.Ctx) {
        ctx.Set("Content-Type", "application/json")
        ctx.Status(200).SendString(j)
    })
}

same package with doc.go

package docs

// OpenAPI
func OpenAPI() string {
    return (&s{}).ReadDoc()
}

I made a middleware for Fiber
https://github.com/arsmn/fiber-swagger
@easonlin404 you can add it to the list of supported frameworks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kirillDanshin picture kirillDanshin  路  3Comments

Nerzal picture Nerzal  路  6Comments

wingsofovnia picture wingsofovnia  路  3Comments

hoangtuan151 picture hoangtuan151  路  4Comments

lfaoro picture lfaoro  路  4Comments