Skip to content

Commit f745799

Browse files
authored
Add URL paths to the API spec TypeScript sources (#3528)
1 parent c23216f commit f745799

File tree

506 files changed

+4446
-797
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

+4446
-797
lines changed

output/schema/schema-serverless.json

Lines changed: 255 additions & 255 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.

0 commit comments

Comments
 (0)