All Downloads are FREE. Search and download functionalities are using the official Maven repository.

JavaJaxRS.cxf.apiServiceImpl.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
package {{package}}.impl;

import {{package}}.*;
{{#imports}}import {{import}};
{{/imports}}

import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
{{#jakarta}}
import jakarta.ws.rs.*;
import jakarta.ws.rs.core.Response;
{{/jakarta}}
{{^jakarta}}
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
{{/jakarta}}
import org.apache.cxf.jaxrs.model.wadl.Description;
import org.apache.cxf.jaxrs.model.wadl.DocTarget;

import org.apache.cxf.jaxrs.ext.multipart.*;

import io.swagger.annotations.Api;
{{#useSpringAnnotationConfig}}
import org.springframework.stereotype.Service;
{{/useSpringAnnotationConfig}}

{{#useSpringAnnotationConfig}}
@Service("{{classname}}")
{{/useSpringAnnotationConfig}}
{{#description}}
{{/description}}
{{#appName}}
/**
 * {{{appName}}}
 *
 {{#appDescription}}
 * 

{{{appDescription}}} {{/appDescription}} * */ {{/appName}} public class {{classname}}ServiceImpl implements {{classname}} { {{#operations}} {{#operation}} {{#summary}} /** * {{summary}} * {{#notes}} * {{notes}} * {{/notes}} */ {{/summary}} public {{>returnTypes}} {{nickname}}({{#allParams}}{{>queryParamsImpl}}{{>pathParamsImpl}}{{>headerParamsImpl}}{{>bodyParamsImpl}}{{>formParamsImpl}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) { // TODO: Implement... {{#useGenericResponse}}return Response.ok().entity("magic!").build();{{/useGenericResponse}}{{^useGenericResponse}}{{^vendorExtensions.x-java-is-response-void}}return null;{{/vendorExtensions.x-java-is-response-void}}{{/useGenericResponse}} } {{/operation}} } {{/operations}}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy