templates.ResolvedSubresourceAuthFunctionSpecification.hbs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polyapi-maven-plugin Show documentation
Show all versions of polyapi-maven-plugin Show documentation
Maven plugin to run handle Poly API functions.
package {{packageName}};
import io.polyapi.client.api.model.PolyEntity;
import io.polyapi.client.api.model.PolyMetadata;
import io.polyapi.client.api.model.function.SubresourceAuthFunction;
import io.polyapi.client.api.model.function.PolyAuthSubresource;
import io.polyapi.commons.api.model.PolyGeneratedClass;
/**
* Poly auth function with ID {{id}}.
*/
@PolyEntity("{{id}}")
@PolyMetadata(paramNames = { {{{paramNames}}} },
paramTypes = { {{{paramTypes}}} })
@PolyAuthSubresource("{{{subResource}}}")
@PolyGeneratedClass
public interface {{className}} extends SubresourceAuthFunction {
{{{returnType}}} {{{methodSignature}}};
}