ga4gh / task-execution-schemas

Apache License 2.0
81 stars 28 forks source link

Fixed cancel http endpoint #58

Closed adamstruck closed 7 years ago

adamstruck commented 7 years ago

Having body: "*" in the service definition for the cancel endpoint had unintended consequences.

This PR allows you to cancel a task via:

curl -X POST http://localhost:8000/v1/tasks/{id}:cancel

rather than

curl -X -d '{}' POST http://localhost:8000/v1/tasks/{id}:cancel

as was required by the original definition.