Skip to content

Using openapi with reverse proxies #3773

Answered by laurenceisla
jessevitrone asked this question in Q&A

You must be logged in to vote

formatting changes where we don't want the URIs to be necessarily tied one-to-one with the table or view names [...] but since that happens before the request comes in to postgrest, it seems like the generated openapi wouldn't know about it.

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.

Replies: 1 comment 3 replies

You must be logged in to vote
3 replies
@jessevitrone

@laurenceisla

Answer selected by jessevitrone
@jessevitrone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants