Skip to content

Commit fbbcde1

Browse files
Update rest-api-spec (#4042)
Co-authored-by: pquentin <[email protected]>
1 parent f9a2e78 commit fbbcde1

File tree

6 files changed

+141
-2
lines changed

6 files changed

+141
-2
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,15 @@
104104
],
105105
"response": []
106106
},
107-
"indices.put_template": {
107+
"inference.put_mistral": {
108108
"request": [
109-
"Request: query parameter 'cause' does not exist in the json spec"
109+
"Missing request & response"
110+
],
111+
"response": []
112+
},
113+
"inference.put_voyageai": {
114+
"request": [
115+
"Missing request & response"
110116
],
111117
"response": []
112118
},

specification/_json_spec/indices.put_template.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
"description": "Whether the index template should only be added if new or can also replace an existing one",
3535
"default": false
3636
},
37+
"cause": {
38+
"type": "string",
39+
"description": "User defined reason for creating/updating the index template",
40+
"default": ""
41+
},
3742
"master_timeout": {
3843
"type": "time",
3944
"description": "Specify timeout for connection to master"
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"inference.put_mistral": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/infer-service-mistral.html",
5+
"description": "Configure a Mistral inference endpoint"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_inference/{task_type}/{mistral_inference_id}",
17+
"methods": ["PUT"],
18+
"parts": {
19+
"task_type": {
20+
"type": "string",
21+
"description": "The task type"
22+
},
23+
"mistral_inference_id": {
24+
"type": "string",
25+
"description": "The inference Id"
26+
}
27+
}
28+
}
29+
]
30+
},
31+
"body": {
32+
"description": "The inference endpoint's task and service settings"
33+
}
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"inference.put_voyageai": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/inference-apis.html",
5+
"description": "Configure a VoyageAI inference endpoint"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_inference/{task_type}/{voyageai_inference_id}",
17+
"methods": ["PUT"],
18+
"parts": {
19+
"task_type": {
20+
"type": "string",
21+
"description": "The task type"
22+
},
23+
"voyageai_inference_id": {
24+
"type": "string",
25+
"description": "The inference ID"
26+
}
27+
}
28+
}
29+
]
30+
},
31+
"body": {
32+
"description": "The inference endpoint's task and service settings"
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)