Skip to content

Commit c172281

Browse files
authored
Add endpoint URLs to the API specification (phase 2) (#3529)
1 parent 0ba9e9d commit c172281

File tree

506 files changed

+4445
-796
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

506 files changed

+4445
-796
lines changed

output/schema/schema-serverless.json

Lines changed: 254 additions & 254 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 521 additions & 521 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/close_point_in_time/ClosePointInTimeRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ import { Id } from '@_types/common'
3434
* @doc_tag search
3535
*/
3636
export interface Request extends RequestBase {
37+
urls: [
38+
{
39+
path: '/_pit'
40+
methods: ['DELETE']
41+
}
42+
]
3743
body: {
3844
/**
3945
* The ID of the point-in-time.

specification/_global/count/CountRequest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ import { Operator } from '@_types/query_dsl/Operator'
3232
* @doc_tag search
3333
*/
3434
export interface Request extends RequestBase {
35+
urls: [
36+
{
37+
path: '/_count'
38+
methods: ['POST', 'GET']
39+
},
40+
{
41+
path: '/{index}/_count'
42+
methods: ['POST', 'GET']
43+
}
44+
]
3545
path_parts: {
3646
/**
3747
* Comma-separated list of data streams, indices, and aliases to search.

specification/_global/create/CreateRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ import { Duration } from '@_types/Time'
3939
* @doc_tag document
4040
*/
4141
export interface Request<TDocument> extends RequestBase {
42+
urls: [
43+
{
44+
path: '/{index}/_create/{id}'
45+
methods: ['PUT', 'POST']
46+
}
47+
]
4248
path_parts: {
4349
/**
4450
* Unique identifier for the document.

specification/_global/delete/DeleteRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ import { Duration } from '@_types/Time'
4040
* @doc_tag document
4141
*/
4242
export interface Request extends RequestBase {
43+
urls: [
44+
{
45+
path: '/{index}/_doc/{id}'
46+
methods: ['DELETE']
47+
}
48+
]
4349
path_parts: {
4450
/**
4551
* Unique identifier for the document.

specification/_global/delete_by_query/DeleteByQueryRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ import { Duration } from '@_types/Time'
4242
* @doc_tag document
4343
*/
4444
export interface Request extends RequestBase {
45+
urls: [
46+
{
47+
path: '/{index}/_delete_by_query'
48+
methods: ['POST']
49+
}
50+
]
4551
path_parts: {
4652
/**
4753
* Comma-separated list of data streams, indices, and aliases to search.

specification/_global/delete_by_query_rethrottle/DeleteByQueryRethrottleRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ import { float } from '@_types/Numeric'
3232
* @doc_tag document
3333
*/
3434
export interface Request extends RequestBase {
35+
urls: [
36+
{
37+
path: '/_delete_by_query/{task_id}/_rethrottle'
38+
methods: ['POST']
39+
}
40+
]
3541
path_parts: {
3642
/**
3743
* The ID for the task.

specification/_global/delete_script/DeleteScriptRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ import { Duration } from '@_types/Time'
3030
* @doc_tag script
3131
*/
3232
export interface Request extends RequestBase {
33+
urls: [
34+
{
35+
path: '/_scripts/{id}'
36+
methods: ['DELETE']
37+
}
38+
]
3339
path_parts: {
3440
/**
3541
* Identifier for the stored script or search template.

specification/_global/exists/DocumentExistsRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ import {
3737
* @doc_tag document
3838
*/
3939
export interface Request extends RequestBase {
40+
urls: [
41+
{
42+
path: '/{index}/_doc/{id}'
43+
methods: ['HEAD']
44+
}
45+
]
4046
path_parts: {
4147
/**
4248
* Identifier of the document.

specification/_global/exists_source/SourceExistsRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ import {
3737
* @doc_tag document
3838
*/
3939
export interface Request extends RequestBase {
40+
urls: [
41+
{
42+
path: '/{index}/_source/{id}'
43+
methods: ['HEAD']
44+
}
45+
]
4046
path_parts: {
4147
/**
4248
* Identifier of the document.

specification/_global/explain/ExplainRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ import { Operator } from '@_types/query_dsl/Operator'
3232
* @doc_tag search
3333
*/
3434
export interface Request extends RequestBase {
35+
urls: [
36+
{
37+
path: '/{index}/_explain/{id}'
38+
methods: ['GET', 'POST']
39+
}
40+
]
3541
path_parts: {
3642
/**
3743
* Defines the document ID.

specification/_global/field_caps/FieldCapabilitiesRequest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ import { QueryContainer } from '@_types/query_dsl/abstractions'
3737
* @doc_tag search
3838
*/
3939
export interface Request extends RequestBase {
40+
urls: [
41+
{
42+
path: '/_field_caps'
43+
methods: ['GET', 'POST']
44+
},
45+
{
46+
path: '/{index}/_field_caps'
47+
methods: ['GET', 'POST']
48+
}
49+
]
4050
path_parts: {
4151
/**
4252
* Comma-separated list of data streams, indices, and aliases used to limit the request. Supports wildcards (*). To target all data streams and indices, omit this parameter or use * or _all.

specification/_global/get/GetRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ import {
3737
* @doc_tag document
3838
*/
3939
export interface Request extends RequestBase {
40+
urls: [
41+
{
42+
path: '/{index}/_doc/{id}'
43+
methods: ['GET']
44+
}
45+
]
4046
path_parts: {
4147
/** Unique identifier of the document. */
4248
id: Id

specification/_global/get_script/GetScriptRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ import { Duration } from '@_types/Time'
3030
* @doc_tag script
3131
*/
3232
export interface Request extends RequestBase {
33+
urls: [
34+
{
35+
path: '/_scripts/{id}'
36+
methods: ['GET']
37+
}
38+
]
3339
path_parts: {
3440
/**
3541
* Identifier for the stored script or search template.

specification/_global/get_script_context/GetScriptContextRequest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@ import { RequestBase } from '@_types/Base'
2727
* @availability stack stability=stable
2828
* @doc_tag script
2929
*/
30-
export interface Request extends RequestBase {}
30+
export interface Request extends RequestBase {
31+
urls: [
32+
{
33+
path: '/_script_context'
34+
methods: ['GET']
35+
}
36+
]
37+
}

specification/_global/get_script_languages/GetScriptLanguagesRequest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@ import { RequestBase } from '@_types/Base'
2727
* @availability stack stability=stable
2828
* @doc_tag script
2929
*/
30-
export interface Request extends RequestBase {}
30+
export interface Request extends RequestBase {
31+
urls: [
32+
{
33+
path: '/_script_language'
34+
methods: ['GET']
35+
}
36+
]
37+
}

specification/_global/get_source/SourceRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ import {
3737
* @doc_tag document
3838
*/
3939
export interface Request extends RequestBase {
40+
urls: [
41+
{
42+
path: '/{index}/_source/{id}'
43+
methods: ['GET']
44+
}
45+
]
4046
path_parts: {
4147
/** Unique identifier of the document. */
4248
id: Id

specification/_global/health_report/Request.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ import { Duration } from '@_types/Time'
4545
* @availability serverless stability=stable visibility=private
4646
*/
4747
export interface Request extends RequestBase {
48+
urls: [
49+
{
50+
path: '/_health_report'
51+
methods: ['GET']
52+
},
53+
{
54+
path: '/_health_report/{feature}'
55+
methods: ['GET']
56+
}
57+
]
4858
path_parts: {
4959
/**
5060
* A feature of the cluster, as returned by the top-level health report API.

specification/_global/index/IndexRequest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ import { Duration } from '@_types/Time'
4242
* @doc_tag document
4343
*/
4444
export interface Request<TDocument> extends RequestBase {
45+
urls: [
46+
{
47+
path: '/{index}/_doc/{id}'
48+
methods: ['PUT', 'POST']
49+
},
50+
{
51+
path: '/{index}/_doc'
52+
methods: ['POST']
53+
}
54+
]
4555
path_parts: {
4656
/**
4757
* Unique identifier for the document.

specification/_global/info/RootNodeInfoRequest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,11 @@ import { RequestBase } from '@_types/Base'
2828
* @cluster_privileges monitor
2929
* @doc_id api-root
3030
*/
31-
export interface Request extends RequestBase {}
31+
export interface Request extends RequestBase {
32+
urls: [
33+
{
34+
path: '/'
35+
methods: ['GET']
36+
}
37+
]
38+
}

specification/_global/knn_search/KnnSearchRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ import { Query } from './_types/Knn'
4343
* @doc_tag search
4444
*/
4545
export interface Request extends RequestBase {
46+
urls: [
47+
{
48+
path: '/{index}/_knn_search'
49+
methods: ['GET', 'POST']
50+
}
51+
]
4652
path_parts: {
4753
/**
4854
* A comma-separated list of index names to search;

specification/_global/mget/MultiGetRequest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@ import { Operation } from './types'
3535
* @doc_tag document
3636
*/
3737
export interface Request extends RequestBase {
38+
urls: [
39+
{
40+
path: '/_mget'
41+
methods: ['GET', 'POST']
42+
},
43+
{
44+
path: '/{index}/_mget'
45+
methods: ['GET', 'POST']
46+
}
47+
]
3848
path_parts: {
3949
/**
4050
* Name of the index to retrieve documents from when `ids` are specified, or when a document in the `docs` array does not specify an index.

specification/_global/msearch/MultiSearchRequest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ import { RequestItem } from './types'
4747
* @doc_tag search
4848
*/
4949
export interface Request extends RequestBase {
50+
urls: [
51+
{
52+
path: '/_msearch'
53+
methods: ['GET', 'POST']
54+
},
55+
{
56+
path: '/{index}/_msearch'
57+
methods: ['GET', 'POST']
58+
}
59+
]
5060
path_parts: {
5161
/**
5262
* Comma-separated list of data streams, indices, and index aliases to search.

specification/_global/msearch_template/MultiSearchTemplateRequest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@ import { RequestItem } from './types'
3232
* @ext_doc_id search-templates
3333
*/
3434
export interface Request extends RequestBase {
35+
urls: [
36+
{
37+
path: '/_msearch/template'
38+
methods: ['GET', 'POST']
39+
},
40+
{
41+
path: '/{index}/_msearch/template'
42+
methods: ['GET', 'POST']
43+
}
44+
]
3545
path_parts: {
3646
/**
3747
* Comma-separated list of data streams, indices, and aliases to search.

specification/_global/mtermvectors/MultiTermVectorsRequest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ import { Operation } from './types'
4141
* @doc_tag document
4242
*/
4343
export interface Request extends RequestBase {
44+
urls: [
45+
{
46+
path: '/_mtermvectors'
47+
methods: ['GET', 'POST']
48+
},
49+
{
50+
path: '/{index}/_mtermvectors'
51+
methods: ['GET', 'POST']
52+
}
53+
]
4454
path_parts: {
4555
/**
4656
* Name of the index that contains the documents.

specification/_global/open_point_in_time/OpenPointInTimeRequest.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ import { Duration } from '@_types/Time'
4242
* @doc_tag search
4343
*/
4444
export interface Request extends RequestBase {
45+
urls: [
46+
{
47+
path: '/{index}/_pit'
48+
methods: ['POST']
49+
}
50+
]
4551
path_parts: {
4652
index: Indices
4753
}

specification/_global/ping/PingRequest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,11 @@ import { RequestBase } from '@_types/Base'
2727
* @availability serverless stability=stable visibility=public
2828
* @doc_tag cluster
2929
*/
30-
export interface Request extends RequestBase {}
30+
export interface Request extends RequestBase {
31+
urls: [
32+
{
33+
path: '/'
34+
methods: ['HEAD']
35+
}
36+
]
37+
}

specification/_global/put_script/PutScriptRequest.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ import { Duration } from '@_types/Time'
3131
* @doc_tag script
3232
*/
3333
export interface Request extends RequestBase {
34+
urls: [
35+
{
36+
path: '/_scripts/{id}'
37+
methods: ['PUT', 'POST']
38+
},
39+
{
40+
path: '/_scripts/{id}/{context}'
41+
methods: ['PUT', 'POST']
42+
}
43+
]
3444
path_parts: {
3545
/**
3646
* Identifier for the stored script or search template.

0 commit comments

Comments
 (0)