Skip to content

Commit

Permalink
[OAS] Remove repeated servers from connector APIs (#169710)
Browse files Browse the repository at this point in the history
(cherry picked from commit 161e129)
  • Loading branch information
lcawl committed Nov 2, 2023
1 parent 2bfda0e commit a9b2c0f
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 a9b2c0f

Please sign in to comment.