Specifying which swagger.json file to use

24 views
Skip to first unread message

Jack Widman

unread,
Apr 7, 2016, 10:48:53 AM4/7/16
to Swagger
I would like to use a different swagger.json for each environment, dev, prod, test etc.

How can I tell swagger which swagger.json to use?

Thanks.

Jack

Ron Ratovsky

unread,
Apr 7, 2016, 11:44:35 AM4/7/16
to swagger-sw...@googlegroups.com
When you say 'How can I tell swagger which swagger.json to use?’ what do you mean? Swagger is the spec itself (now known as the OpenAPI) - what tool are you talking about?

--
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.

Jack Widman

unread,
Apr 7, 2016, 11:48:59 AM4/7/16
to Swagger
Sorry. I am using play-swagger by i-heart radio.
 ( http://iheartradio.github.io/play-swagger/ )
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

Ron Ratovsky

unread,
Apr 7, 2016, 11:51:35 AM4/7/16
to swagger-sw...@googlegroups.com
If you’re just looking to generate a different spec for each environment because of the host, you can drop the host altogether though I can’t tell you how to do that with play-swagger.
If something else, please clarify.

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.

Jack Widman

unread,
Apr 7, 2016, 12:03:13 PM4/7/16
to Swagger
Thanks.
Reply all
Reply to author
Forward
0 new messages