Skip to content

Commit

Permalink
[8.11] [OAS] Remove repeated servers from connector APIs (#169710) (#…
Browse files Browse the repository at this point in the history
…170458)

# Backport

This will backport the following commits from `main` to `8.11`:
- [[OAS] Remove repeated servers from connector APIs
(#169710)](#169710)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Lisa
Cawley","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-11-02T15:54:54Z","message":"[OAS]
Remove repeated servers from connector APIs
(#169710)","sha":"161e129fa3e08e4e701356e7be92a8574f06620b","branchLabelMapping":{"^v8.12.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Docs","release_note:skip","docs","Feature:Actions/ConnectorsManagement","backport:prev-minor","v8.12.0"],"number":169710,"url":"https://github.com/elastic/kibana/pull/169710","mergeCommit":{"message":"[OAS]
Remove repeated servers from connector APIs
(#169710)","sha":"161e129fa3e08e4e701356e7be92a8574f06620b"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.12.0","labelRegex":"^v8.12.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/169710","number":169710,"mergeCommit":{"message":"[OAS]
Remove repeated servers from connector APIs
(#169710)","sha":"161e129fa3e08e4e701356e7be92a8574f06620b"}}]}]
BACKPORT-->
  • Loading branch information
lcawl authored Nov 2, 2023
1 parent b67ed03 commit 287589d
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 351 deletions.
199 changes: 18 additions & 181 deletions x-pack/plugins/actions/docs/openapi/bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
},
"servers": [
{
"url": "http://localhost:5601",
"description": "local"
"url": "/"
}
],
"security": [
Expand Down Expand Up @@ -173,18 +172,8 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/s/{spaceId}/api/actions/connector/{connectorId}": {
"get": {
Expand Down Expand Up @@ -222,35 +211,9 @@
"$ref": "#/components/responses/401"
},
"404": {
"description": "Object is not found.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"example": "Not Found"
},
"message": {
"type": "string",
"example": "Saved object [action/baf33fc0-920c-11ed-b36a-874bd1548a00] not found"
},
"statusCode": {
"type": "integer",
"example": 404
}
}
}
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
"$ref": "#/components/responses/404"
}
]
}
},
"delete": {
"summary": "Deletes a connector.",
Expand Down Expand Up @@ -278,35 +241,9 @@
"$ref": "#/components/responses/401"
},
"404": {
"description": "Object is not found.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"error": {
"type": "string",
"example": "Not Found"
},
"message": {
"type": "string",
"example": "Saved object [action/baf33fc0-920c-11ed-b36a-874bd1548a00] not found"
},
"statusCode": {
"type": "integer",
"example": 404
}
}
}
}
}
}
},
"servers": [
{
"url": "https://localhost:5601"
"$ref": "#/components/responses/404"
}
]
}
},
"post": {
"summary": "Creates a connector.",
Expand Down Expand Up @@ -439,12 +376,7 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"put": {
"summary": "Updates the attributes for a connector.",
Expand Down Expand Up @@ -586,18 +518,8 @@
"404": {
"$ref": "#/components/responses/404"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/s/{spaceId}/api/actions/connectors": {
"get": {
Expand Down Expand Up @@ -683,18 +605,8 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/s/{spaceId}/api/actions/connector_types": {
"get": {
Expand Down Expand Up @@ -783,18 +695,8 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/s/{spaceId}/api/actions/connector/{connectorId}/_execute": {
"post": {
Expand Down Expand Up @@ -966,18 +868,8 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/s/{spaceId}/api/actions/action/{actionId}": {
"delete": {
Expand Down Expand Up @@ -1006,12 +898,7 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"get": {
"summary": "Retrieves a connector by ID.",
Expand All @@ -1036,12 +923,7 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"put": {
"summary": "Updates the attributes for a connector.",
Expand Down Expand Up @@ -1095,18 +977,8 @@
"404": {
"$ref": "#/components/responses/404"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/s/{spaceId}/api/actions": {
"get": {
Expand Down Expand Up @@ -1139,12 +1011,7 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"post": {
"summary": "Creates a connector.",
Expand Down Expand Up @@ -1198,18 +1065,8 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/s/{spaceId}/api/actions/list_action_types": {
"get": {
Expand Down Expand Up @@ -1271,18 +1128,8 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
},
"/s/{spaceId}/api/actions/action/{actionId}/_execute": {
"post": {
Expand Down Expand Up @@ -1364,18 +1211,8 @@
"401": {
"$ref": "#/components/responses/401"
}
},
"servers": [
{
"url": "https://localhost:5601"
}
]
},
"servers": [
{
"url": "https://localhost:5601"
}
]
}
}
},
"components": {
Expand Down
Loading

0 comments on commit 287589d

Please sign in to comment.