Java Code Examples for org.apache.cxf.jaxrs.swagger.Swagger2Feature#setLicenseUrl()

The following examples show how to use org.apache.cxf.jaxrs.swagger.Swagger2Feature#setLicenseUrl() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractSwagger2ServiceDescriptionTest.java    From cxf with Apache License 2.0 5 votes vote down vote up
protected Swagger2Feature createSwagger2Feature() {
    final Swagger2Feature feature = new Swagger2Feature();
    feature.setRunAsFilter(runAsFilter);
    feature.setContact(CONTACT);
    feature.setTitle(TITLE);
    feature.setDescription(DESCRIPTION);
    feature.setLicense(LICENSE);
    feature.setLicenseUrl(LICENSE_URL);
    feature.setSecurityDefinitions(Collections.singletonMap(SECURITY_DEFINITION_NAME,
       new io.swagger.models.auth.BasicAuthDefinition()));
    return feature;
}
 
Example 2
Source File: SwaggerToOpenApiConversionTest.java    From cxf with Apache License 2.0 5 votes vote down vote up
protected Swagger2Feature createSwagger2Feature() {
    final Swagger2Feature feature = new Swagger2Feature();
    feature.setContact(CONTACT);
    feature.setTitle(TITLE);
    feature.setDescription(DESCRIPTION);
    feature.setLicense(LICENSE);
    feature.setLicenseUrl(LICENSE_URL);
    feature.setSecurityDefinitions(Collections.singletonMap(SECURITY_DEFINITION_NAME,
       new io.swagger.models.auth.BasicAuthDefinition()));
    return feature;
}