Dev Portal SmartDocs/Swagger Public access

Not applicable

Hi All,

Need some help for Dev-portal Smart Docs.

I created a Swagger from my proxy using "api2Swagger" and import that in the Smart Docs on the Dev-portal and can see the swagger UI in there.

My concern is, how can provide the Access to public or API consumers to that Swagger in the Dev-Portal, so they can see and test it.

Something like this below :

http://petstore.swagger.io/

Any help will be Appreciated !!!

TIA

0 2 473
2 REPLIES 2

Not applicable

Hi,

You can control whether to show all of the published nodes on the site for specific roles (such as visitor) or restrict them.

On the admin/people/permissions page there is permission called "View published content" which controls the visibility of the nodes, but this is all or nothing.

For a bit more granular permissions for nodes by type you could use the following module: https://www.drupal.org/project/node_view_permissions

But to be able to control the individual SmartDocs' visibility, that would need some custom development, or at least I couldn't find any contrib modules which would allow to do this out of the box.

Check related article here .