What's the basePath value?
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
Those two are separate. Even if you don't use the codegen, Swagger-UI will not be able to produce the proper API calls with that basePath.
On 13 November 2014 17:20, polarice <yute...@gmail.com> wrote:
Yes, but I had to specify the location of the api-docs for BasicPHPGenerator.
./bin/runscala.sh com.wordnik.swagger.codegen.BasicPHPGenerator http://localhost.example.com/api-docs
It uses that parameter as both the location of api-docs and context root of my application. Is there any way to have these two values separate?
On Thursday, November 13, 2014 10:04:28 AM UTC-5, Ron R wrote:
So that's why it runs it all under api-docs.
The basePath should represent the context root of your application, not the documentation.
On 13 November 2014 17:03, polarice <yute...@gmail.com> wrote:
The base path is http://localhost.example.com/api-docs
On Thursday, November 13, 2014 1:49:41 AM UTC-5, Ron R wrote:What's the basePath value?
On Nov 13, 2014 1:08 AM, "polarice" <yute...@gmail.com> wrote:I set my api's path in api-docs to /issue/get.
When I run the BasicPHPGenerator, it is trying to find the controller action at http://localhost.example.com/api-docs/issue/get.
The controller action is actually at http://localhost.example.com/issue/get (without api-doc), so it results in a 404 when I browse to it.
This is the command that I run to generate the client libraries in PHP.
./bin/runscala.sh com.wordnik.swagger.codegen.BasicPHPGenerator http://localhost.example.com/api-docs
When this runs, I get an exception that it can't find http://localhost.example.com/api-docs/login/get (since the actual controller/action is not located there).
How can I change the path to not contain "api-docs"?
--
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+unsubscri...@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.
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.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.