diff --git a/dotCMS/src/main/java/com/dotcms/rest/api/v1/job/JobQueueResource.java b/dotCMS/src/main/java/com/dotcms/rest/api/v1/job/JobQueueResource.java index de3ad722e5a8..109807d7a1ab 100644 --- a/dotCMS/src/main/java/com/dotcms/rest/api/v1/job/JobQueueResource.java +++ b/dotCMS/src/main/java/com/dotcms/rest/api/v1/job/JobQueueResource.java @@ -106,7 +106,7 @@ public Response getJobStatus(@Context HttpServletRequest request, @PathParam("jo @POST @Path("/{jobId}/cancel") @Produces(MediaType.APPLICATION_JSON) - @Consumes(MediaType.APPLICATION_JSON) + @Consumes(MediaType.WILDCARD) public Response cancelJob(@Context HttpServletRequest request, @PathParam("jobId") String jobId) throws DotDataException { new WebResource.InitBuilder(webResource) diff --git a/dotcms-postman/src/main/resources/postman/JobQueueResourceAPITests.postman_collection.json b/dotcms-postman/src/main/resources/postman/JobQueueResourceAPITests.postman_collection.json index 80c3b33194f0..38ffd7778426 100644 --- a/dotcms-postman/src/main/resources/postman/JobQueueResourceAPITests.postman_collection.json +++ b/dotcms-postman/src/main/resources/postman/JobQueueResourceAPITests.postman_collection.json @@ -645,63 +645,6 @@ "description": "Monitors a specific job using Server-Sent Events (SSE)." }, "response": [] - }, - { - "name": "Monitor Job", - "event": [ - { - "listen": "test", - "script": { - "exec": [ - "pm.test(\"Status code is 200\", function () {", - " pm.response.to.have.status(200);", - "});", - "", - "pm.test(\"Response contains labels and state data\", function () {", - " const responseText = pm.response.text();", - " pm.expect(responseText).to.include(\"job-update\"); ", - " pm.expect(responseText).to.include(\"state:\\\"RUNNING\\\"\");", - "});" - ], - "type": "text/javascript", - "packages": {} - } - }, - { - "listen": "prerequest", - "script": { - "exec": [ - "" - ], - "type": "text/javascript", - "packages": {} - } - } - ], - "request": { - "method": "GET", - "header": [ - { - "key": "Accept", - "value": "text/event-stream" - } - ], - "url": { - "raw": "{{baseUrl}}/api/v1/jobs/{{jobId}}/monitor", - "host": [ - "{{baseUrl}}" - ], - "path": [ - "api", - "v1", - "jobs", - "{{jobId}}", - "monitor" - ] - }, - "description": "Monitors a specific job using Server-Sent Events (SSE)." - }, - "response": [] } ], "auth": {