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

Auto-register routes #46

Open
zupo opened this issue Oct 24, 2019 · 3 comments
Open

Auto-register routes #46

zupo opened this issue Oct 24, 2019 · 3 comments

Comments

@zupo
Copy link
Collaborator

zupo commented Oct 24, 2019

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.

@jenner
Copy link

jenner commented Oct 30, 2019

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.

@gweis
Copy link
Contributor

gweis commented Nov 15, 2019

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

@zupo
Copy link
Collaborator Author

zupo commented Jun 9, 2021

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

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

3 participants