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

different documentation instances based on blueprints #363

Open
AdamVerner opened this issue Oct 2, 2022 · 4 comments
Open

different documentation instances based on blueprints #363

AdamVerner opened this issue Oct 2, 2022 · 4 comments
Milestone

Comments

@AdamVerner
Copy link

My application employs multiple blueprints which i would like to generate separate documentation for.
I don't want the customers to see the endpoints i use in the internal frontend.

Currently i use workaround with DispatcherMiddleware so i can have multiple app instances, instead of using blueprints. That solution is really cumbersome and creates other issues with debugging, readability, extensions and so on. It would be nice to have option to have multiple endpoints based on Blueprints.

@reteps
Copy link

reteps commented Jun 15, 2023

@greyli -- Is this a feature you would ever consider adding? This is a must-have for my project.

@reteps
Copy link

reteps commented Jun 15, 2023

The closest equivalent to this feature I could find was this PR in flask-smorest.

@greyli greyli added this to To do in APIFlask 2.0 Jul 16, 2023
@greyli greyli added this to the 2.0.0 milestone Jul 18, 2023
@greyli
Copy link
Member

greyli commented Jul 26, 2023

Hi! I tried to implement this and managed to create the separate OpenAPI spec for different blueprints, but it needs a lot of code changes. I decided to move to the 2.1.0 version milestone.

@greyli greyli modified the milestones: 2.0.0, 2.1.0 Jul 26, 2023
@greyli greyli removed this from To do in APIFlask 2.0 Jul 26, 2023
@reteps
Copy link

reteps commented Jul 27, 2023

Amazing, thank you!

@greyli greyli pinned this issue Dec 21, 2023
@greyli greyli modified the milestones: 2.1.0, 3.0.0 Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants