You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue draft for GH feature request on allowing non-admin role users to access OpenAPI spec 3 RESTified endpoints API
Is your proposal related to a problem?
The OpenAPI 3 specification of the REST endpoints are exposed at /api/swagger/json for admin role only. We want that API to be exposed to different roles too. So different roles will be able to access different schemas (as per the permission level defined in hasura).
Let me explain this with an example:
For eg., I have a book table and an author table. And I make a mutation to insert a book, and create a RESTified endpoint from it (as an admin).
I create a role named "editor". This editor role may have permissions to run the mutation to insert a book, but nothing else.
But the admin role will be able to insert the book, and also the author through the relationship.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters