Im not sure if I have explained myself correctly.. The problem is this:
http://localhost:9090/tdc/dialer/webservices/v1/swagger.json#/
{
"swagger" : "2.0",
"info" : {
"description" : "Osgi Dialer Webservice",
"version" : "1.26.0.SNAPSHOT",
"title" : "Osgi Dialer Webservice",
"contact" : {
"name" : "[email protected]"
},
"license" : {
"name" : "Commercial",
"url" : "http://www.apache.org/licenses/LICENSE-2.0.html"
}
}, "host" : "0.0.0.0:9090",
"basePath" : "/tdc/dialer/webservices/v1",
"tags" : [ {
"name" : "api-docs"
}
Swagger UI then generates requests like this:
http://0.0.0.0:9090/tdc/dialer/webservices/v1/fullcampaigns
Which obviously fails.. How can I change this behaviour?
On Tue, Oct 10, 2017 at 3:31 PM, nino martinez wael <
[email protected]> wrote:
> Hi
>
> I am running a dedicated CXF JAX RS on 0.0.0.0:9090
>
> the issue are that my swagger.json states that the host are 0.0.0.0:9090
>
> I've tried to overwrite it using:
>
> Swagger2Feature swagger = new Swagger2Feature();
> swagger.setHost("127.0.0.1:9000");
>
> But swagger.json remains unchanged. What am I missing?
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>
--
Best regards / Med venlig hilsen
Nino Martinez