Skip to content

Commit

Permalink
issue #519: fix web endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mrk-vi committed Jul 26, 2023
1 parent b1b9e20 commit 91ce8ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ public Uni<DataIndex> newDataIndex(@Source Scheduler scheduler) {
return schedulerService.getNewDataIndex(scheduler);
}

@Mutation
public Uni<Void> cancelSchedulation(@Id long id) {
return schedulerService.cancelSchedulation(id);
}

@Inject
SchedulerService schedulerService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import java.util.List;
Expand All @@ -22,6 +23,12 @@ public Uni<List<String>> getDeletedContentIds(@PathParam("schedulerId") long sch
return schedulerService.getDeletedContentIds(schedulerId);
}

@Path("/{schedulerId}/cancelSchedulation")
@POST
public Uni<Void> cancelSchedulation(@PathParam("schedulerId") long schedulerId) {
return schedulerService.cancelSchedulation(schedulerId);
}

@Inject
SchedulerService schedulerService;

Expand Down

0 comments on commit 91ce8ee

Please sign in to comment.