Using openapi with reverse proxies #3773
Answered
by
laurenceisla
jessevitrone
asked this question in
Q&A
-
I'd like to use openapi and swagger, but also will probably need to use some kind of reverse proxy for URIs. Do these two features work well together? It seems like using a reverse proxy would result in different URI's than the ones generated by openapi. Is there a good way to make these work together? |
Beta Was this translation helpful? Give feedback.
Answered by
laurenceisla
Nov 7, 2024
Replies: 1 comment 3 replies
-
Yes! You can set your base URL for the OpenAPI output in the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, you're right there. For changes where the proxy endpoints are different from what PostgREST builds, then the OpenAPI won't generate those same endpoints.
So yeah, for now I can't see a workaround for those cases, except perhaps naming the views themselves with the special characters (not sure if there could be extra problems there, e.g. #3771). This could be possible to do with the upcoming
postgrest-openapi
project.