Open jameschensmith opened 6 years ago
@james-r-smith, were you been able to solve your problem? I am facing the same issue.
@james-r-smith, I ended up adding an openapi configuration file with server url as defined: https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Integration-and-configuration#known-locations
Hey @valasatava, I ended up implementing org.eclipse.microprofile.openapi.OASModelReader
and using org.eclipse.microprofile.openapi.OASFactory
to build the data that I needed. Just another option to consider. 😊👍
@james-r-smith, thanks for your suggestion! I ended up implementing programmatic configuration using io.swagger.v3.oas.models.OpenAPI
object.
@james-r-smith, thanks for your suggestion! I ended up implementing programmatic configuration using
io.swagger.v3.oas.models.OpenAPI
object.
@valasatava Do you have reference documents for this implementation (programmatic configuration)?
@padmakaraa, I followed this one: https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Integration-and-configuration#jax-rs-application
@valasatava Could you please paste your code here, how you configured the base path using ServletConfig
? Thanks in advance!
I'm in the process of migrating from Swagger Core
1.5.X
to2.X
, and I'm struggling to find where to modify the Base Path of my API (possibly multiple base path solution would be nice as well).Earlier, I was using
io.swagger.jaxrs.config.DefaultJaxrsConfig
in myweb.xml
, but this doesn't seem to be available now. I've been scanning the Wiki for quite some time before finally falling back to asking here. The problem with the Wiki is that it's missing any CXF configurations. 😅If anyone can direct me to where I can configure this (either
web.xml
or any other options), I would greatly appreciate it. Thanks!