Skip to content

Commit

Permalink
[Remove] types from rest-api-spec endpoints (#2689) (#2698)
Browse files Browse the repository at this point in the history
Removes types from rest-api-spec endpoints

Signed-off-by: Nicholas Walter Knize <[email protected]>
(cherry picked from commit 86eb24d)

Co-authored-by: Nick Knize <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and nknize authored Apr 4, 2022
1 parent 17f5181 commit 8b4d879
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 226 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,6 @@ public void testApiNamingConventions() throws Exception {
"create",
"get_script_context",
"get_script_languages",
"indices.exists_type",
"indices.get_upgrade",
"indices.put_alias",
"render_search_template",
Expand Down
17 changes: 0 additions & 17 deletions rest-api-spec/src/main/resources/rest-api-spec/api/bulk.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,6 @@
"description":"Default index for items which don't provide one"
}
}
},
{
"path":"/{index}/{type}/_bulk",
"methods":[
"POST",
"PUT"
],
"parts":{
"index":{
"type":"string",
"description":"Default index for items which don't provide one"
},
"type":{
"type":"string",
"description":"Default document type for items which don't provide one"
}
}
}
]
},
Expand Down
26 changes: 0 additions & 26 deletions rest-api-spec/src/main/resources/rest-api-spec/api/create.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,6 @@
"description":"The name of the index"
}
}
},
{
"path":"/{index}/{type}/{id}/_create",
"methods":[
"PUT",
"POST"
],
"parts":{
"id":{
"type":"string",
"description":"Document ID"
},
"index":{
"type":"string",
"description":"The name of the index"
},
"type":{
"type":"string",
"description":"The type of the document",
"deprecated":true
}
},
"deprecated":{
"version":"7.0.0",
"description":"Specifying types in urls has been deprecated"
}
}
]
},
Expand Down
25 changes: 0 additions & 25 deletions rest-api-spec/src/main/resources/rest-api-spec/api/delete.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,6 @@
"description":"The name of the index"
}
}
},
{
"path":"/{index}/{type}/{id}",
"methods":[
"DELETE"
],
"parts":{
"id":{
"type":"string",
"description":"The document ID"
},
"index":{
"type":"string",
"description":"The name of the index"
},
"type":{
"type":"string",
"description":"The type of the document",
"deprecated":true
}
},
"deprecated":{
"version":"7.0.0",
"description":"Specifying types in urls has been deprecated"
}
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,6 @@
"description":"The name of the index"
}
}
},
{
"path":"/{index}/{type}/{id}/_source",
"methods":[
"HEAD"
],
"parts":{
"id":{
"type":"string",
"description":"The document ID"
},
"index":{
"type":"string",
"description":"The name of the index"
},
"type":{
"type":"string",
"description":"The type of the document; deprecated and optional starting with 7.0",
"deprecated":true
}
},
"deprecated":{
"version":"7.0.0",
"description":"Specifying types in urls has been deprecated"
}
}
]
},
Expand Down
26 changes: 0 additions & 26 deletions rest-api-spec/src/main/resources/rest-api-spec/api/explain.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,6 @@
"description":"The name of the index"
}
}
},
{
"path":"/{index}/{type}/{id}/_explain",
"methods":[
"GET",
"POST"
],
"parts":{
"id":{
"type":"string",
"description":"The document ID"
},
"index":{
"type":"string",
"description":"The name of the index"
},
"type":{
"type":"string",
"description":"The type of the document",
"deprecated":true
}
},
"deprecated":{
"version":"7.0.0",
"description":"Specifying types in urls has been deprecated"
}
}
]
},
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,6 @@
],
"default":"indices"
},
"types":{
"type":"list",
"description":"A comma-separated list of document types for the `indexing` index metric"
},
"include_segment_file_sizes":{
"type":"boolean",
"description":"Whether to report the aggregated disk usage of each one of the Lucene index files (only applies if segment stats are requested)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,6 @@
"description":"A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices"
}
}
},
{
"path":"/{index}/{type}/_validate/query",
"methods":[
"GET",
"POST"
],
"parts":{
"index":{
"type":"list",
"description":"A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices"
},
"type":{
"type":"list",
"description":"A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types",
"deprecated":true
}
},
"deprecated":{
"version":"7.0.0",
"description":"Specifying types in urls has been deprecated"
}
}
]
},
Expand Down
25 changes: 0 additions & 25 deletions rest-api-spec/src/main/resources/rest-api-spec/api/update.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,6 @@
"description":"The name of the index"
}
}
},
{
"path":"/{index}/{type}/{id}/_update",
"methods":[
"POST"
],
"parts":{
"id":{
"type":"string",
"description":"Document ID"
},
"index":{
"type":"string",
"description":"The name of the index"
},
"type":{
"type":"string",
"description":"The type of the document",
"deprecated":true
}
},
"deprecated":{
"version":"7.0.0",
"description":"Specifying types in urls has been deprecated"
}
}
]
},
Expand Down

0 comments on commit 8b4d879

Please sign in to comment.