JavaJaxRS.spec.RestApplication.mustache Maven / Gradle / Ivy
package {{invokerPackage}};
import {{javaxPackage}}.ws.rs.ApplicationPath;
import {{javaxPackage}}.ws.rs.core.Application;
{{#useMicroProfileOpenAPIAnnotations}}{{#openAPI}}{{#info}}
@org.eclipse.microprofile.openapi.annotations.OpenAPIDefinition(
info = @org.eclipse.microprofile.openapi.annotations.info.Info(
version="{{{appVersion}}}"
{{#appName}},title = "{{{.}}}"{{/appName}}
{{#appDescription}},description = "{{{.}}}"{{/appDescription}}
{{#license}},license = @org.eclipse.microprofile.openapi.annotations.info.License(name = "{{{licenseInfo}}}", url = "{{{licenseUrl}}}"){{/license}}
{{#contact}},contact = @org.eclipse.microprofile.openapi.annotations.info.Contact(name = "{{{infoName}}}", email = "{{{infoEmail}}}", url = "{{{infoUrl}}}"){{/contact}}
)){{/info}}{{/openAPI}}{{/useMicroProfileOpenAPIAnnotations}}
@ApplicationPath(RestResourceRoot.APPLICATION_PATH)
public class RestApplication extends Application {
}