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

gen.org.tkit.apm.ApplicationsRestClient Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy