-
I am running org.eclipse.microprofile 6.0 on Wildfly 27. I have defined several Rest API endpoints. When I am opening openapi definition at http://localhost/openapi/ I got the following output
But my main application config is defined like this: @ApplicationPath("/api")
public class ImixsApplication extends Application {
} so all my Rest API resources should be located under /api/.... How can I change this for openapi? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It looks like I found the reason for this behavior. I used the file
This was just to ensure some packages will be scanned. But the package of my Application was not part of this parameter. So adding the package to the parameter |
Beta Was this translation helpful? Give feedback.
It looks like I found the reason for this behavior.
I used the file
META-INF/microprofile-config.properties
with the following content:This was just to ensure some packages will be scanned. But the package of my Application was not part of this parameter.
So adding the package to the parameter
mp.openapi.scan.packages
, as also removing this parameter completely solved the problem.