diff options
| author | Shulhan <ms@kilabit.info> | 2023-12-22 02:57:21 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-12-22 03:08:04 +0700 |
| commit | aa64efe9e8957da6c122f9decaaa78dca83d14ee (patch) | |
| tree | a6b60b025b369c21d9d4e4efce957c313be38c69 /testdata/http_server/execute/cancel.aww | |
| parent | c0d336ca456093b2b7c0b585dbe08f62cbc8ca83 (diff) | |
| download | awwan-aa64efe9e8957da6c122f9decaaa78dca83d14ee.tar.xz | |
all: implement HTTP API to stop local or play execution
The HTTP API for stopping execution have the following signature,
DELETE /awwan/api/execute?id=<string>
If the ID is exist, the execution will be cancelled and return HTTP
status 200 with the following body,
Content-Type: application/json
{
"code": 200,
}
Otherwise it will return HTTP status 404 with error message.
References: https://todo.sr.ht/~shulhan/awwan/9
Diffstat (limited to 'testdata/http_server/execute/cancel.aww')
| -rw-r--r-- | testdata/http_server/execute/cancel.aww | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testdata/http_server/execute/cancel.aww b/testdata/http_server/execute/cancel.aww new file mode 100644 index 0000000..46a443f --- /dev/null +++ b/testdata/http_server/execute/cancel.aww @@ -0,0 +1 @@ +sleep 300 |
