Add Accept & Content-Type headers to rest api spec (#53979)

Co-authored-by: Russ Cam <russ.cam@elastic.co>
This commit is contained in:
Martijn Laarman 2020-12-09 14:43:05 +01:00 committed by GitHub
parent 4016b1cf52
commit 8d3def3e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
359 changed files with 1281 additions and 4 deletions

View File

@ -5,6 +5,9 @@
"url": "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html",
"description": "Returns the painless contexts"
},
"headers":{
"accept": [ "application/json"]
},
"url": {
"paths": [
{

View File

@ -5,6 +5,9 @@
"description": "Example"
},
"stability" : "stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url": {
"paths": [
{

View File

@ -5,6 +5,10 @@
"description":"Allows to perform multiple index/update/delete operations in a single request."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/x-ndjson"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Shows information about currently configured aliases to indices including filter and routing infos."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Provides a snapshot of how many shards are allocated to each data node and how much disk space they are using."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Provides quick access to the document count of the entire cluster, or individual indices."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Shows how much heap memory is currently being used by fielddata on every data node in the cluster."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns a concise representation of the cluster health."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns help for the Cat APIs."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain" ]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about indices: number of primaries and replicas, document counts, disk size, ..."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about the master node."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about custom node attributes."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns basic statistics about performance of cluster nodes."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns a concise representation of the cluster pending tasks."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about installed plugins across nodes node."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about index shard recoveries, both on-going completed."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about snapshot repositories registered in the cluster."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Provides low-level information about the segments in the shards of an index."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Provides a detailed view of shard allocation on nodes."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns all snapshots in a specific repository."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about the tasks currently executing on one or more nodes in the cluster."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about existing templates."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns cluster-wide thread pool statistics per node.\nBy default the active, queue and rejected statistics are returned for all thread pools."
},
"stability":"stable",
"headers":{
"accept": [ "text/plain", "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Explicitly clears the search context for a scroll."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json","text/plain"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Provides explanations for shard allocations in the cluster."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Deletes a component template"
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Clears cluster voting config exclusions."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about whether a particular component template exist"
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns one or more component templates"
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns cluster settings."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns basic information about the health of the cluster."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns a list of any cluster-level changes (e.g. create index, update mapping,\nallocate or fail shard) which have not yet been executed."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Updates the cluster voting config exclusions by node ids or node names."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Creates or updates a component template"
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Updates the cluster settings."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns the information about configured remote clusters."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Allows to manually change the allocation of individual shards in the cluster."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns a comprehensive information about the state of the cluster."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns high-level overview of cluster statistics."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Returns number of documents matching a query."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Creates a new document in the index.\n\nReturns a 409 response when a document with a same ID already exists in the index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description": "Deletes the specified dangling index"
},
"stability": "stable",
"headers":{
"accept": [ "application/json"]
},
"url": {
"paths": [
{

View File

@ -5,6 +5,9 @@
"description": "Imports the specified dangling index"
},
"stability": "stable",
"headers":{
"accept": [ "application/json"]
},
"url": {
"paths": [
{

View File

@ -5,6 +5,9 @@
"description": "Returns all dangling indices."
},
"stability": "stable",
"headers":{
"accept": [ "application/json"]
},
"url": {
"paths": [
{

View File

@ -5,6 +5,9 @@
"description":"Removes a document from the index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Deletes documents matching the provided query."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Changes the number of requests per second for a particular Delete By Query operation."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Deletes a script."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about whether a document exists in an index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about whether a document source exists in an index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Returns information about why a specific matches (or doesn't match) a query."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns the information about the capabilities of fields among multiple indices."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns a document."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns a script."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns all script contexts."
},
"stability":"experimental",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns available script types, languages and contexts"
},
"stability":"experimental",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns the source of a document."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Creates or updates a document in an index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Adds a block to an index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Performs the analysis process on a text and return the tokens breakdown of the text."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Clears all or specific caches for one or more indices."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description": "Clones an index"
},
"stability": "stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url": {
"paths": [
{

View File

@ -5,6 +5,9 @@
"description":"Closes an index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Creates an index with optional settings and mappings."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Deletes an index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Deletes an alias."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Deletes an index template."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Deletes an index template."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about whether a particular index exists."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about whether a particular alias exists."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about whether a particular index template exists."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about whether a particular index template exists."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about whether a particular document type exists. (DEPRECATED)"
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Performs the flush operation on one or more indices."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Performs the force merge operation on one or more indices."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about one or more indices."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns an alias."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns mapping for one or more fields."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns an index template."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns mappings for one or more indices."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns settings for one or more indices."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns an index template."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Opens an index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Creates or updates an alias."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Creates or updates an index template."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Updates the index mappings."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Updates the index settings."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Creates or updates an index template."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about ongoing index shard recoveries."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Performs the refresh operation in one or more indices."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Returns information about any matching indices, aliases, and data streams"
},
"stability":"experimental",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Updates an alias to point to a new index when the existing index\nis considered to be too large or too old."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Provides low-level information about segments in a Lucene index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Provides store information for shard copies of indices."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Allow to shrink an existing index into a new index with fewer primary shards."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description": "Simulate matching the given index name against the index templates in the system"
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description": "Simulate resolving the given template name or body"
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Allows you to split an existing index into a new index with more primary shards."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,9 @@
"description":"Provides statistics on operations happening in an index."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"]
},
"url":{
"paths":[
{

View File

@ -5,6 +5,10 @@
"description":"Updates index aliases."
},
"stability":"stable",
"headers":{
"accept": [ "application/json"],
"content_type": ["application/json"]
},
"url":{
"paths":[
{

Some files were not shown because too many files have changed in this diff Show More