Skip to content

Commit 8d3eba3

Browse files
[SPEC] Added version, version_type to get and get_source
1 parent c66c9ff commit 8d3eba3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

rest-api-spec/api/get.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@
5858
"_source_include": {
5959
"type" : "list",
6060
"description" : "A list of fields to extract and return from the _source field"
61+
},
62+
"version" : {
63+
"type" : "number",
64+
"description" : "Explicit version number for concurrency control"
65+
},
66+
"version_type": {
67+
"type" : "enum",
68+
"options" : ["internal","external"],
69+
"description" : "Specific version type"
6170
}
6271
}
6372
},

rest-api-spec/api/get_source.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
"routing": {
5151
"type" : "string",
5252
"description" : "Specific routing value"
53+
"version" : {
54+
"type" : "number",
55+
"description" : "Explicit version number for concurrency control"
56+
},
57+
"version_type": {
58+
"type" : "enum",
59+
"options" : ["internal","external"],
60+
"description" : "Specific version type"
5361
}
5462
}
5563
},

0 commit comments

Comments
 (0)