Skip to content

Commit 97ef9d6

Browse files
committed
adding and fixing rest-api-spec files
1 parent 7710455 commit 97ef9d6

File tree

2 files changed

+40
-4
lines changed

2 files changed

+40
-4
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"indices.get_data_stream_mappings":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html",
5+
"description":"Gets a data stream's mappings"
6+
},
7+
"stability":"stable",
8+
"visibility": "feature_flag",
9+
"feature_flag": "logs_stream",
10+
"headers":{
11+
"accept": [ "application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/_data_stream/{name}/_mappings",
17+
"methods":[
18+
"GET"
19+
],
20+
"parts":{
21+
"name":{
22+
"type":"string",
23+
"description":"Comma-separated list of data streams or data stream patterns"
24+
}
25+
}
26+
}
27+
]
28+
},
29+
"params":{
30+
"master_timeout":{
31+
"type":"time",
32+
"description":"Period to wait for a connection to the master node"
33+
}
34+
}
35+
}
36+
}

rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_mappings.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"parts":{
2121
"name":{
2222
"type":"string",
23-
"description":"The name of the data stream or data stream pattern"
23+
"description":"Comma-separated list of data streams or data stream patterns"
2424
}
2525
}
2626
}
@@ -29,16 +29,16 @@
2929
"params":{
3030
"dry_run":{
3131
"type":"boolean",
32-
"description":"Perform a dry run but do not actually change any mappings",
32+
"description":"Whether this request should only be a dry run rather than actually applying mappings",
3333
"default":false
3434
},
3535
"timeout":{
3636
"type":"time",
37-
"description":"Specify timeout for acknowledging the cluster state update"
37+
"description":"Period to wait for a response"
3838
},
3939
"master_timeout":{
4040
"type":"time",
41-
"description":"Specify timeout for connection to master"
41+
"description":"Period to wait for a connection to the master node"
4242
}
4343
},
4444
"body":{

0 commit comments

Comments
 (0)