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

apiTemplate.api.mustache Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
{{>licenseInfo}}
package {{package}};

{{#imports}}import {{import}};
{{/imports}}

import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.MediaType;

//import org.eclipse.microprofile.rest.client.annotation.RegisterProvider;
//import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;

{{#appName}}
/**
 * {{{appName}}}
 *
 {{#appDescription}}
 * 

{{{appDescription}}} * {{/appDescription}} */ {{/appName}} //@RegisterRestClient //@RegisterProvider(ApiExceptionMapper.class) @Path("{{^useAnnotatedBasePath}}/{{/useAnnotatedBasePath}}{{#useAnnotatedBasePath}}{{contextPath}}{{/useAnnotatedBasePath}}") public interface {{classname}} { {{#operations}} {{#operation}} {{#summary}} /** * {{summary}} * {{#notes}} * {{notes}} * {{/notes}} */ {{/summary}} @{{httpMethod}} {{#subresourceOperation}}@Path("{{{path}}}"){{/subresourceOperation}} {{#hasConsumes}} @Consumes({ {{#consumes}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/consumes}} }) {{/hasConsumes}} {{#hasProduces}} @Produces({ {{#produces}}"{{{mediaType}}}"{{#hasMore}}, {{/hasMore}}{{/produces}} }) {{/hasProduces}} public {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException, ProcessingException; {{/operation}} } {{/operations}}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy