Class TopicsEndpoint
java.lang.Object
pl.allegro.tech.hermes.management.api.TopicsEndpoint
-
Constructor Summary
ConstructorsConstructorDescriptionTopicsEndpoint(TopicService topicService, ManagementRights managementRights, OwnerSources ownerSources) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsecreate(pl.allegro.tech.hermes.api.TopicWithSchema topicWithSchema, jakarta.ws.rs.container.ContainerRequestContext requestContext) pl.allegro.tech.hermes.api.TopicWithSchemapl.allegro.tech.hermes.api.TopicMetricsgetMetrics(String qualifiedTopicName) List<pl.allegro.tech.hermes.api.MessageTextPreview> getPreview(String qualifiedTopicName) byte[]getPreviewRaw(String qualifiedTopicName, Integer idx) List<pl.allegro.tech.hermes.api.Topic> listForOwner(String ownerSourceName, String id) queryList(String groupName, pl.allegro.tech.hermes.api.Query<pl.allegro.tech.hermes.api.Topic> query) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responseupdate(String qualifiedTopicName, pl.allegro.tech.hermes.api.PatchData patch, jakarta.ws.rs.container.ContainerRequestContext requestContext)
-
Constructor Details
-
TopicsEndpoint
@Autowired public TopicsEndpoint(TopicService topicService, ManagementRights managementRights, OwnerSources ownerSources)
-
-
Method Details
-
list
-
queryList
-
create
@POST @Consumes("application/json") @Produces("application/json") @RolesAllowed("any") public jakarta.ws.rs.core.Response create(pl.allegro.tech.hermes.api.TopicWithSchema topicWithSchema, @Context jakarta.ws.rs.container.ContainerRequestContext requestContext) -
remove
@DELETE @Produces("application/json") @Path("/{topicName}") @RolesAllowed({"admin","topicOwner"}) public jakarta.ws.rs.core.Response remove(@PathParam("topicName") String qualifiedTopicName, @Context jakarta.ws.rs.container.ContainerRequestContext requestContext) -
update
@PUT @Consumes("application/json") @Produces("application/json") @Path("/{topicName}") @RolesAllowed({"admin","topicOwner"}) public jakarta.ws.rs.core.Response update(@PathParam("topicName") String qualifiedTopicName, pl.allegro.tech.hermes.api.PatchData patch, @Context jakarta.ws.rs.container.ContainerRequestContext requestContext) -
get
@GET @Produces("application/json") @Path("/{topicName}") public pl.allegro.tech.hermes.api.TopicWithSchema get(@PathParam("topicName") String qualifiedTopicName) -
getMetrics
@GET @Produces("application/json") @Path("/{topicName}/metrics") public pl.allegro.tech.hermes.api.TopicMetrics getMetrics(@PathParam("topicName") String qualifiedTopicName) -
getPreview
-
getPreviewRaw
-
preview
@GET @Produces("application/json") @Path("/{topicName}/preview/cluster/{brokersClusterName}/partition/{partition}/offset/{offset}") @RolesAllowed("admin") public String preview(@PathParam("topicName") String qualifiedTopicName, @PathParam("brokersClusterName") String brokersClusterName, @PathParam("partition") Integer partition, @PathParam("offset") Long offset) -
listForOwner
-