Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Remove] types from rest-api-spec endpoints #2689

Merged
merged 2 commits into from
Apr 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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