Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrizzio-dotCMS committed Oct 9, 2024
1 parent edfe6b7 commit fb27414
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit fb27414

Please sign in to comment.