[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <restconfiguration> swagger.json generation without host set to

Try the following conf:

* <restConfiguration     apiContextPath="api-docs"     component="servlet"
    enableCORS="true"     host="">            <camel:apiProperty
key="api.title" value="myAPI"/>            <camel:apiProperty
key="api.version" value="1.0.0"/>            <camel:apiProperty key="cors"
value="true"/>            <camel:apiProperty key="host" value=""/>

Rafael Torres Coelho Soares

On Thu, Jul 12, 2018 at 4:55 PM Martin Lichtin <lichtin@xxxxxxxxx.invalid>

> Anyone know how I can configure <restconfiguration> so the generated
> swagger.json does not set host: ""?
> With this I cannot, for example, import the Swagger directly into
> Postman and make calls to the API.
> says
> the "host" can be omitted for a more dynamic association.