poem
poem copied to clipboard
Merging api specs/different middleware's for different apis with same OpenAPI Specificaton
I found this issue: https://github.com/poem-web/poem/issues/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?