Swagger-ui doesn’t filter operations, and it would be meaningless if you’re trying to hide operations for security reasons.
If the goal is just to hide specific tags, modifying the code to not display specific tags should be fairly simple. From: <[email protected]> on behalf of Gibson <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Tuesday, 13 December 2016 at 13:43 To: Swagger <[email protected]> Subject: Re: Swagger-UI: Documentation sections permissions I had documentation in api blueprint format so to generate swagger docs I used apib2swagger node library: https://www.npmjs.com/package/apib2swagger To create the swagger-ui support I use swagger-node-express library, and took the guide from here: https://github.com/shawngong/Swagger-Node-Express-For-Existing-APIs If it's not possible with these libaries I can switch to other ones. Even if you're not familiar with a way to generate such documentation, I'm looking for the swagger-ui feature that provides that feature - if there is one I will find a way to generate docs in that format. Thanks! On Monday, December 12, 2016 at 6:22:22 PM UTC+2, Ron wrote: That depends on how you generate your spec as well. Different libraries have different filtering mechanisms. From: <[email protected]> on behalf of Gibson <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Monday, 12 December 2016 at 16:34 To: Swagger <[email protected]> Subject: Swagger-UI: Documentation sections permissions Hi all, I was wondering if you know of a way to expose specific APIs documentation via permissions. I was thinking that the best way is to do it via tags: so all the APIs will contain an "admin" tag but only some will contain a "customer1" tag, and so customer1 will be able to see only he's APIs. I looked everywhere and couldn't find a way to do this, can you please help me? Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
