Skip to content

Commit ce9d54c

Browse files
github-actions[bot]delvedorpquentin
authored
Update rest-api-spec main (#2145)
Co-authored-by: delvedor <[email protected]> Co-authored-by: Quentin Pradet <[email protected]>
1 parent 4a5c9e8 commit ce9d54c

File tree

74 files changed

+2017
-182
lines changed

Some content is hidden

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

74 files changed

+2017
-182
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 90 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -4342,75 +4342,15 @@
43424342
"operationId": "connector-put",
43434343
"parameters": [
43444344
{
4345-
"in": "path",
4346-
"name": "connector_id",
4347-
"description": "The unique identifier of the connector to be created or updated",
4348-
"required": true,
4349-
"deprecated": false,
4350-
"schema": {
4351-
"$ref": "#/components/schemas/_types:Id"
4352-
},
4353-
"style": "simple"
4345+
"$ref": "#/components/parameters/connector.put#connector_id"
43544346
}
43554347
],
43564348
"requestBody": {
4357-
"content": {
4358-
"application/json": {
4359-
"schema": {
4360-
"type": "object",
4361-
"properties": {
4362-
"description": {
4363-
"type": "string"
4364-
},
4365-
"index_name": {
4366-
"oneOf": [
4367-
{
4368-
"$ref": "#/components/schemas/_types:IndexName"
4369-
},
4370-
{
4371-
"$ref": "#/components/schemas/_spec_utils:NullValue"
4372-
}
4373-
]
4374-
},
4375-
"is_native": {
4376-
"type": "boolean"
4377-
},
4378-
"language": {
4379-
"type": "string"
4380-
},
4381-
"name": {
4382-
"type": "string"
4383-
},
4384-
"service_type": {
4385-
"type": "string"
4386-
}
4387-
},
4388-
"required": [
4389-
"index_name"
4390-
]
4391-
}
4392-
}
4393-
},
4394-
"required": true
4349+
"$ref": "#/components/requestBodies/connector.put"
43954350
},
43964351
"responses": {
43974352
"200": {
4398-
"description": "",
4399-
"content": {
4400-
"application/json": {
4401-
"schema": {
4402-
"type": "object",
4403-
"properties": {
4404-
"result": {
4405-
"$ref": "#/components/schemas/_types:Result"
4406-
}
4407-
},
4408-
"required": [
4409-
"result"
4410-
]
4411-
}
4412-
}
4413-
}
4353+
"$ref": "#/components/responses/connector.put#200"
44144354
}
44154355
}
44164356
},
@@ -4672,6 +4612,24 @@
46724612
}
46734613
}
46744614
},
4615+
"put": {
4616+
"tags": [
4617+
"connector.put"
4618+
],
4619+
"summary": "Creates or updates a connector",
4620+
"externalDocs": {
4621+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/create-connector-api.html"
4622+
},
4623+
"operationId": "connector-put-1",
4624+
"requestBody": {
4625+
"$ref": "#/components/requestBodies/connector.put"
4626+
},
4627+
"responses": {
4628+
"200": {
4629+
"$ref": "#/components/responses/connector.put#200"
4630+
}
4631+
}
4632+
},
46754633
"post": {
46764634
"tags": [
46774635
"connector.post"
@@ -4718,8 +4676,7 @@
47184676
]
47194677
}
47204678
}
4721-
},
4722-
"required": true
4679+
}
47234680
},
47244681
"responses": {
47254682
"200": {
@@ -36734,6 +36691,24 @@
3673436691
}
3673536692
}
3673636693
},
36694+
"connector.put#200": {
36695+
"description": "",
36696+
"content": {
36697+
"application/json": {
36698+
"schema": {
36699+
"type": "object",
36700+
"properties": {
36701+
"result": {
36702+
"$ref": "#/components/schemas/_types:Result"
36703+
}
36704+
},
36705+
"required": [
36706+
"result"
36707+
]
36708+
}
36709+
}
36710+
}
36711+
},
3673736712
"count#200": {
3673836713
"description": "",
3673936714
"content": {
@@ -41352,6 +41327,17 @@
4135241327
},
4135341328
"style": "form"
4135441329
},
41330+
"connector.put#connector_id": {
41331+
"in": "path",
41332+
"name": "connector_id",
41333+
"description": "The unique identifier of the connector to be created or updated",
41334+
"required": true,
41335+
"deprecated": false,
41336+
"schema": {
41337+
"$ref": "#/components/schemas/_types:Id"
41338+
},
41339+
"style": "simple"
41340+
},
4135541341
"count#index": {
4135641342
"in": "path",
4135741343
"name": "index",
@@ -49150,6 +49136,45 @@
4915049136
},
4915149137
"required": true
4915249138
},
49139+
"connector.put": {
49140+
"content": {
49141+
"application/json": {
49142+
"schema": {
49143+
"type": "object",
49144+
"properties": {
49145+
"description": {
49146+
"type": "string"
49147+
},
49148+
"index_name": {
49149+
"oneOf": [
49150+
{
49151+
"$ref": "#/components/schemas/_types:IndexName"
49152+
},
49153+
{
49154+
"$ref": "#/components/schemas/_spec_utils:NullValue"
49155+
}
49156+
]
49157+
},
49158+
"is_native": {
49159+
"type": "boolean"
49160+
},
49161+
"language": {
49162+
"type": "string"
49163+
},
49164+
"name": {
49165+
"type": "string"
49166+
},
49167+
"service_type": {
49168+
"type": "string"
49169+
}
49170+
},
49171+
"required": [
49172+
"index_name"
49173+
]
49174+
}
49175+
}
49176+
}
49177+
},
4915349178
"count": {
4915449179
"content": {
4915549180
"application/json": {

0 commit comments

Comments
 (0)