Swagger API for limited user


#1

So I’ve set up the api, and exposed swagger app to a limited user. I’ve setup that his role only has access to two tables. How can I make it so this user only sees API docs for just those two tables. Thanks.


#2

I don’t think that’s possible (at least for now).

Cause if you look at the role to expose the api_docs, it don’t have an option to chose which one you could show, just the access type.


#3

Role-specific Swagger API visibility is coming soon. Currently, the endpoints are locked down based on role, but still visible.


#4

An idea how far out this is? It would be very useful also as a confirmation that the roles are correctly coded.


#5

This feature comes out in the sprint ending this week (version 2.0.5).


#6

Is this feature added in DF? As I am not able to see this in latest DF version


#7

See this post: http://blog.dreamfactory.com/share-api-docs-securely

The most recent DreamFactory release (2.8.1) improved this functionality even more, so that the API Docs will not show users endpoints they don’t have access to.
(Previously, it would show them, but you wouldn’t be able to operate them.)