gen.org.tkit.apm.ApplicationsRestClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tkit-quarkus-portal-mvc Show documentation
Show all versions of tkit-quarkus-portal-mvc Show documentation
1000kit mvc library for the Quarkus framework
package gen.org.tkit.apm;
import gen.org.tkit.apm.model.InputPart;
import gen.org.tkit.apm.model.PermissionsRegistrationRequest2DTO;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import javax.validation.constraints.*;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
@Path("/applications")
@javax.inject.Singleton
@org.eclipse.microprofile.rest.client.inject.RegisterRestClient(configKey = "apm.v2")
@javax.annotation.Generated(
value = "org.tkit.maven.mp.restclient.MicroProfileRestClientCodegen",
date = "2020-06-29T09:51:20.796170Z[Etc/UTC]")
public interface ApplicationsRestClient {
@GET
@Path("/{applicationNamespaceId}/permissions")
@Produces({"application/json"})
Response getPermissionsForToken(
@PathParam("applicationNamespaceId") String applicationNamespaceId,
@HeaderParam("apm-principal-token") String apmPrincipalToken,
@HeaderParam("apm-principal-roles") String apmPrincipalRoles);
@POST
@Path("/{applicationNamespaceId}/permissionRegistrationRequests/csv")
@Consumes({"multipart/form-data"})
@Produces({"application/json"})
Response submitCSV(
@PathParam("applicationNamespaceId") String applicationNamespaceId,
@FormParam(value = "formData") Map formData,
@FormParam(value = "formDataMap") Map> formDataMap,
@FormParam(value = "parts") List parts,
@FormParam(value = "preamble") String preamble);
@POST
@Path("/{applicationNamespaceId}/permissionRegistrationRequests")
@Consumes({"application/json"})
@Produces({"application/json"})
Response submitJson(
@PathParam("applicationNamespaceId") String applicationNamespaceId,
@Valid PermissionsRegistrationRequest2DTO body);
}