Which Swagger library do you use to generate the documentation?
Should the API be hidden to everyone or based on some condition?
--
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 swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Which Swagger library do you use to generate the documentation?
Should the API be hidden to everyone or based on some condition?
On Mar 27, 2014 2:39 AM, "Wendy Huang" <qinye...@gmail.com> wrote:
Hi,--
We have a requirement to hide some API display on swagger UI. Is there a way to do that?
Thanks,
Wendy
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 swagger-swaggersocket+unsub...@googlegroups.com.
Hi Wendy,
Don't forget to define the filter in your web.xml (check the sample).
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
{"apiVersion":"1.0.0","swaggerVersion":"1.2","apis":[{"path":"/pet","description":"Operations about pets"},{"path":"/user","description":"Operations about user"}],"authorizations":{"oauth2":{"type":"oauth2","scopes":[{"scope":"email","description":"Access to your email address"},{"scope":"pets","description":"Access to your pets"}],"grantTypes":{"implicit":{"loginEndpoint":{"url":"http://localhost:8002/oauth/dialog"},"tokenName":"access_code"}}}},"info":{"title":"Swagger Sample App","description":"This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.wordnik.com\">http://swagger.wordnik.com</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters","termsOfServiceUrl":"http://helloreverb.com/terms/","contact":"api...@wordnik.com","license":"Apache 2.0","licenseUrl":"http://www.apache.org/licenses/LICENSE-2.0.html"}}
Also I have questions:
1) We use dropwizard so there is no web.xml. How to initialize the filter in dropwizard please?
2) Where to specify something like "api-key" and value "special-key"? I didn't find in the example online. Actually the downloaded files are in scala not java and I didn't see these setting also.
Thanks,
Wendy
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscri...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
Feel free to open an issue on Swagger-Core about adding an "access" field to @ApiOperation. Currently (version 1.3.4) we added a 'hidden' field, but that's either true/false and can't be used to dynamically decide whether it should be included or not.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
environment.servlets() in new dropwizard package, instead I use
environment.addFilter
, the problem is ApiAuthorizationFilterImpl which implement SwaggerSpecFilter is not considered a filter and code got error.Did you follow one of the samples for the implicit parameters?
Ron,
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
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 swagger-swaggers...@googlegroups.com.
--
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 swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.