OpenAPI definition in SwaggerUI is almost empty #1877
-
Hi all, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
PostgREST returns the OpenApi definition for the anonymous role, maybe this new anon role you created doesn't have any permissions on the database objects. Edit: |
Beta Was this translation helpful? Give feedback.
-
How can one set the Authorization header for swagger UI so that it displays the interactive protected endpoints? Can it be set dynamically from the client? |
Beta Was this translation helpful? Give feedback.
PostgREST returns the OpenApi definition for the anonymous role, maybe this new anon role you created doesn't have any permissions on the database objects.
Edit:
It's also possible to get the OpenApi definition for an authenticated user if you send the JWT through the Authorization header.