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

Merging api specs/different middleware's for different apis with same OpenAPI Specificaton #850

Open
avucic opened this issue Jul 18, 2024 · 0 comments
Labels
question Further information is requested

Comments

@avucic
Copy link

avucic commented Jul 18, 2024

I found this issue: #714

Following docs there is no OpenApiService::new_with_spec method. Is the example still up to date?

I would like to have separate Api's with different middleware's, for example public and auth endpoints but single OpenAPI specifications:

I saw combined-apis example:

    let api_service = OpenApiService::new((Api1, Api2, Api3), "Combined APIs", "1.0")
        .server("http://localhost:3000/api");

But I can't figure-out how to have this and for example Auth middleware for Api1?

@avucic avucic added the question Further information is requested label Jul 18, 2024
@avucic avucic changed the title Merging api specs Merging api specs/different middleware's for different apis with same OpenAPI Specificaton Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant