handlebars.JavaJaxRS.resteasy.apiService.mustache Maven / Gradle / Ivy
package {{package}};
import {{package}}.*;
{{#hasModel}}import {{modelPackage}}.*;{{/hasModel}}
{{#operations}}{{#operation}}{{#isMultipart}}import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;
{{/isMultipart}}{{/operation}}{{/operations}}
{{#imports}}import {{import}};
{{/imports}}
import java.util.List;
import java.util.Map;
import {{package}}.NotFoundException;
import java.io.InputStream;
{{#jakarta}}
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.SecurityContext;
{{/jakarta}}
{{^jakarta}}
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;
{{/jakarta}}
{{>generatedAnnotation}}
{{#operations}}
public interface {{classname}}Service {
{{#operation}}
{{#contents}}
Response {{nickname}}({{#isMultipart}}MultipartFormDataInput input,{{/isMultipart}}{{#parameters}}{{>serviceQueryParams}}{{>serviceCookieParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{>serviceFormParams}}{{>comma}}{{/parameters}}SecurityContext securityContext) throws NotFoundException;
{{/contents}}
{{/operation}}
}
{{/operations}}