adjusted enrich rest specs to new format

This commit is contained in:
Martijn van Groningen 2019-08-16 09:58:14 +02:00
parent 2677ac14d2
commit 7f2ba91360
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
4 changed files with 53 additions and 46 deletions

View File

@ -2,19 +2,19 @@
"enrich.delete_policy": {
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-delete-policy.html",
"stability" : "stable",
"methods": [ "DELETE" ],
"url": {
"path": "/_enrich/policy/{name}",
"paths": ["/_enrich/policy/{name}"],
"parts": {
"name": {
"type" : "string",
"description" : "The name of the enrich policy"
"paths": [
{
"path": "/_enrich/policy/{name}",
"methods": [ "DELETE" ],
"parts": {
"name": {
"type" : "string",
"description" : "The name of the enrich policy"
}
}
}
},
"params": {
}
},
"body": null
]
}
}
}

View File

@ -2,19 +2,19 @@
"enrich.execute_policy": {
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-execute-policy.html",
"stability" : "stable",
"methods": [ "PUT" ],
"url": {
"path": "/_enrich/policy/{name}/_execute",
"paths": ["/_enrich/policy/{name}/_execute"],
"parts": {
"name": {
"type" : "string",
"description" : "The name of the enrich policy"
"paths": [
{
"path": "/_enrich/policy/{name}/_execute",
"methods": [ "PUT" ],
"parts": {
"name": {
"type" : "string",
"description" : "The name of the enrich policy"
}
}
}
},
"params": {
}
},
"body": null
]
}
}
}

View File

@ -2,18 +2,23 @@
"enrich.get_policy": {
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-get-policy.html",
"stability" : "stable",
"methods": [ "GET" ],
"url": {
"paths": ["/_enrich/policy/{name}", "/_enrich/policy/"],
"parts": {
"name": {
"type" : "string",
"description" : "The name of the enrich policy"
"paths": [
{
"path": "/_enrich/policy/{name}",
"methods": [ "GET" ],
"parts": {
"name": {
"type" : "string",
"description" : "The name of the enrich policy"
}
}
},
{
"path": "/_enrich/policy/",
"methods": [ "GET" ]
}
},
"params": {
}
},
"body": null
]
}
}
}

View File

@ -2,21 +2,23 @@
"enrich.put_policy": {
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-put-policy.html",
"stability" : "stable",
"methods": [ "PUT" ],
"url": {
"path": "/_enrich/policy/{name}",
"paths": ["/_enrich/policy/{name}"],
"parts": {
"name": {
"type" : "string",
"description" : "The name of the enrich policy"
"paths": [
{
"path": "/_enrich/policy/{name}",
"methods": [ "PUT" ],
"parts": {
"name": {
"type" : "string",
"description" : "The name of the enrich policy"
}
}
}
},
"params": {
}
]
},
"body": {
"description": "The enrich policy to register"
"description": "The enrich policy to register",
"required": true
}
}
}