Skip to content

How to work with multiple schemas in PGRST_DB_SCHEMAS via Swagger UI? #2832

Closed Answered by laurenceisla
Nick-Nal asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. Yes, this issue is currently open (#1547). The only way to get the OpenAPI spec for another schema is to add the Accept-Profile: <another_schema> in the request, e.g.:

curl "http://localhost:3000/" -H "Accept-Profile: <another-schema>"

But still, the Swagger UI will not add the Accept-Profile for any of the paths as you noticed. For now, we're not making big updates to OpenAPI due to what's mentioned here #1698 (moving the OpenAPI implementation out of the core repo).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Nick-Nal
Comment options

You must be logged in to vote
1 reply
@laurenceisla
Comment options

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