Class AssociationsResource

java.lang.Object
io.confluent.kafka.schemaregistry.rest.resources.AssociationsResource

@Path("/") @Produces({"application/vnd.schemaregistry.v1+json","application/vnd.schemaregistry+json; qs=0.9","application/json; qs=0.5"}) @Consumes({"application/vnd.schemaregistry.v1+json","application/vnd.schemaregistry+json","application/json","application/octet-stream"}) public class AssociationsResource extends Object
  • Field Details

  • Constructor Details

    • AssociationsResource

      public AssociationsResource(SchemaRegistry schemaRegistry)
  • Method Details

    • getAssociationsBySubject

      @Path("/associations/subjects/{subject}") @GET @PerformanceMetric("associations.by-subject") @DocumentedName("getAssociationsBySubject") public List<Association> getAssociationsBySubject(@PathParam("subject") String subject, @QueryParam("resourceType") String resourceType, @QueryParam("associationType") List<String> associationTypes, @QueryParam("lifecycle") LifecyclePolicy lifecycle, @DefaultValue("0") @QueryParam("offset") int offset, @DefaultValue("-1") @QueryParam("limit") int limit)
    • getAssociationsByResourceName

      @Path("/associations/resources/{resourceNamespace}/{resourceName}") @GET @PerformanceMetric("associations.by-resource-name") @DocumentedName("getAssociationsByResourceName") public List<Association> getAssociationsByResourceName(@PathParam("resourceName") String resourceName, @PathParam("resourceNamespace") String resourceNamespace, @QueryParam("resourceType") String resourceType, @QueryParam("associationType") List<String> associationTypes, @QueryParam("lifecycle") LifecyclePolicy lifecycle, @DefaultValue("0") @QueryParam("offset") int offset, @DefaultValue("-1") @QueryParam("limit") int limit)
    • getAssociationsByResourceId

      @Path("/associations/resources/{resourceId}") @GET @PerformanceMetric("associations.by-resource-id") @DocumentedName("getAssociationsByResourceId") public List<Association> getAssociationsByResourceId(@PathParam("resourceId") String resourceId, @QueryParam("resourceType") String resourceType, @QueryParam("associationType") List<String> associationTypes, @QueryParam("lifecycle") LifecyclePolicy lifecycle, @DefaultValue("0") @QueryParam("offset") int offset, @DefaultValue("-1") @QueryParam("limit") int limit)
    • createAssociation

      @Path("/associations") @POST @PerformanceMetric("association.create") @DocumentedName("createAssociation") public void createAssociation(@Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse, @Context jakarta.ws.rs.core.HttpHeaders headers, @QueryParam("context") String context, @QueryParam("dryRun") boolean dryRun, @NotNull @NotNull AssociationCreateOrUpdateRequest request)
    • createOrUpdateAssociation

      @Path("/associations/resources/{resourceId}") @PUT @PerformanceMetric("association.upsert") @DocumentedName("createOrUpdateAssociation") public void createOrUpdateAssociation(@Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse, @Context jakarta.ws.rs.core.HttpHeaders headers, @PathParam("resourceId") String resourceId, @QueryParam("context") String context, @QueryParam("dryRun") boolean dryRun, @NotNull @NotNull AssociationCreateOrUpdateRequest request)
    • mutateAssociations

      @Path("/associations:batch") @POST @PerformanceMetric("associations.mutate") @DocumentedName("mutateAssociations") public void mutateAssociations(@Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse, @Context jakarta.ws.rs.core.HttpHeaders headers, @QueryParam("context") String context, @QueryParam("dryRun") boolean dryRun, @NotNull @NotNull AssociationBatchRequest request)
    • deleteAssociations

      @Path("/associations/resources/{resourceId}") @DELETE @PerformanceMetric("associations.delete") @DocumentedName("deleteAssociations") public void deleteAssociations(@Suspended jakarta.ws.rs.container.AsyncResponse asyncResponse, @Context jakarta.ws.rs.core.HttpHeaders headers, @PathParam("resourceId") String resourceId, @QueryParam("resourceType") String resourceType, @QueryParam("associationType") List<String> associationTypes, @QueryParam("cascadeLifecycle") boolean cascadeLifecycle, @QueryParam("dryRun") boolean dryRun)