mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-14 08:55:19 +00:00
This change adds support for testing all watcher REST endpoints. It also updates the api docs to be current with the latest code. Change GetWatchResponse to only have the information in needs GetWatchResponse used to contain a GetResponse this is not needed. Now it just contains the needed fields. Closes elastic/elasticsearch#35 Original commit: elastic/x-pack-elasticsearch@905c5da318
29 lines
647 B
JSON
29 lines
647 B
JSON
{
|
|
"put_watch": {
|
|
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-put-watch.html",
|
|
"methods": [ "PUT", "POST" ],
|
|
"url": {
|
|
"path": "/_watcher/watch/{id}",
|
|
"paths": [ "/_watcher/watch/{id}" ],
|
|
"parts": {
|
|
"id": {
|
|
"type" : "string",
|
|
"description" : "Watch ID",
|
|
"required" : true
|
|
}
|
|
},
|
|
"params": {
|
|
"pretty": {
|
|
"type": "boolean",
|
|
"description": "Pretty the output",
|
|
"default": false
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"description" : "The watch",
|
|
"required" : true
|
|
}
|
|
}
|
|
}
|