[
https://issues.apache.org/jira/browse/CXF-7464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16116607#comment-16116607
]
Dennis Kieselhorst commented on CXF-7464:
-----------------------------------------
Ok I made the changes and aligned the defaults with Swagger2Feature.
Regarding the last point, I was thinking of existing bean declarations like
this:
{code:java}
Swagger2Feature swagger2Feature = new Swagger2Feature();
swagger2Feature.setPrettyPrint(true);
swagger2Feature.setTitle("My Application");
swagger2Feature.setContact("Companys API team");
swagger2Feature.setDescription("More detailed description of my
application and the related API");
swagger2Feature.setVersion(this.getClass().getPackage().getImplementationVersion());
swagger2Feature.setLicense(null);
swagger2Feature.setLicenseUrl(null);
swagger2Feature.setSecurityDefinitions(
Collections.singletonMap("apiKeyAuth", new
io.swagger.models.auth.ApiKeyAuthDefinition()));
{code}
But you are right there are multiple ways to define them e.g. also using Spring
XML so it would be necessary to start it up and this is probably too much. So
let's leave it like this for now...
> add java2swagger maven plugin so that can generate swagger(json/yaml) during
> build time
> ---------------------------------------------------------------------------------------
>
> Key: CXF-7464
> URL: https://issues.apache.org/jira/browse/CXF-7464
> Project: CXF
> Issue Type: New Feature
> Components: Tooling
> Reporter: Freeman Fang
> Assignee: Freeman Fang
> Fix For: 3.2.0
>
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)