pyramid_openapi3 icon indicating copy to clipboard operation
pyramid_openapi3 copied to clipboard

Auto-register routes

Open zupo opened this issue 6 years ago • 3 comments

Would it make sense to have pyramid_openapi3 automatically register routes for all endpoints defined inopenapi.yaml? This could be a default behavior so it's easier to get started with and less configuration is needed for simpler APIs.

zupo avatar Oct 24 '19 13:10 zupo

I like the fact that the package isn't opinionated on how you use it. Automatically registered routes would make it opinionated though (IMO). Adding an optional config method like config.pyramid_openapi3_register_routes() might be the way, so the routes are still need to be defined in wsgi factory if it's not called.

jenner avatar Oct 30 '19 10:10 jenner

Yes please, ... keep that feature optional (if it ever get's implemented)

gweis avatar Nov 15 '19 19:11 gweis

Initial implementation released in https://pypi.org/project/pyramid-openapi3/0.12/.

zupo avatar Jun 09 '21 12:06 zupo