Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ResponseOps][Rules] Add OAS schema for handled 4xx errors on rule apis #192616

Merged
merged 22 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
273277a
Add OAS schema for handled 403 errors on rule apis
Zacqary Sep 11, 2024
df6d074
Revert testing code
Zacqary Sep 11, 2024
5f74261
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Sep 11, 2024
4c2785d
Document 400 and 404 errors
Zacqary Sep 13, 2024
68b5a50
Merge remote-tracking branch 'upstream/main' into 188514-rules-4xx-oas
Zacqary Sep 13, 2024
4c313c1
Merge branch '188514-rules-4xx-oas' of https://github.com/Zacqary/kib…
Zacqary Sep 13, 2024
cd4f607
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Sep 13, 2024
4fa70e0
Merge remote-tracking branch 'upstream/main' into 188514-rules-4xx-oas
Zacqary Sep 16, 2024
dfc8f6f
Merge branch '188514-rules-4xx-oas' of https://github.com/Zacqary/kib…
Zacqary Sep 16, 2024
5528f14
Merge remote-tracking branch 'upstream/main' into 188514-rules-4xx-oas
Zacqary Sep 16, 2024
3c6121c
Merge branch 'main' into 188514-rules-4xx-oas
elasticmachine Sep 17, 2024
a8d4987
Add missing error codes and remove error schemas
Zacqary Sep 18, 2024
0c92742
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Sep 18, 2024
29f1594
Add 400 and 403 to public find route
Zacqary Sep 18, 2024
5633021
Merge branch '188514-rules-4xx-oas' of https://github.com/Zacqary/kib…
Zacqary Sep 18, 2024
4470bba
Fix bad merge
Zacqary Sep 18, 2024
e68a37c
[CI] Auto-commit changed files from 'node scripts/capture_oas_snapsho…
kibanamachine Sep 18, 2024
3e51490
Merge remote-tracking branch 'upstream/main' into 188514-rules-4xx-oas
Zacqary Sep 18, 2024
6a4a3df
Merge branch '188514-rules-4xx-oas' of https://github.com/Zacqary/kib…
Zacqary Sep 18, 2024
a5a1717
Merge branch 'main' into 188514-rules-4xx-oas
elasticmachine Sep 19, 2024
3d8474a
[CI] Auto-commit changed files from 'yarn openapi:bundle'
kibanamachine Sep 19, 2024
daec30b
Merge remote-tracking branch 'upstream/main' into 188514-rules-4xx-oas
Zacqary Sep 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
231 changes: 231 additions & 0 deletions oas_docs/bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -3185,6 +3185,39 @@
}
},
"description": "Indicates a successful call."
},
"403": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"error": {
"enum": [
"Forbidden"
],
"type": "string"
},
"message": {
"type": "string"
},
"statusCode": {
"enum": [
403
],
"type": "integer"
}
},
"required": [
"statusCode",
"error",
"message"
],
"type": "object"
}
}
},
"description": "Indicates that this call is forbidden."
}
},
"summary": "Create a rule",
Expand Down Expand Up @@ -4355,6 +4388,39 @@
}
},
"description": "Indicates a successful call."
},
"403": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"error": {
"enum": [
"Forbidden"
],
"type": "string"
},
"message": {
"type": "string"
},
"statusCode": {
"enum": [
403
],
"type": "integer"
}
},
"required": [
"statusCode",
"error",
"message"
],
"type": "object"
}
}
},
"description": "Indicates that this call is forbidden."
}
},
"summary": "Update a rule",
Expand Down Expand Up @@ -4420,6 +4486,39 @@
"responses": {
"204": {
"description": "Indicates a successful call."
},
"403": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"error": {
"enum": [
"Forbidden"
],
"type": "string"
},
"message": {
"type": "string"
},
"statusCode": {
"enum": [
403
],
"type": "integer"
}
},
"required": [
"statusCode",
"error",
"message"
],
"type": "object"
}
}
},
"description": "Indicates that this call is forbidden."
}
},
"summary": "Disable a rule",
Expand Down Expand Up @@ -4467,6 +4566,39 @@
"responses": {
"204": {
"description": "Indicates a successful call."
},
"403": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"error": {
"enum": [
"Forbidden"
],
"type": "string"
},
"message": {
"type": "string"
},
"statusCode": {
"enum": [
403
],
"type": "integer"
}
},
"required": [
"statusCode",
"error",
"message"
],
"type": "object"
}
}
},
"description": "Indicates that this call is forbidden."
}
},
"summary": "Enable a rule",
Expand Down Expand Up @@ -4608,6 +4740,39 @@
"responses": {
"204": {
"description": "Indicates a successful call."
},
"403": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"error": {
"enum": [
"Forbidden"
],
"type": "string"
},
"message": {
"type": "string"
},
"statusCode": {
"enum": [
403
],
"type": "integer"
}
},
"required": [
"statusCode",
"error",
"message"
],
"type": "object"
}
}
},
"description": "Indicates that this call is forbidden."
}
},
"summary": "Update the API key for a rule",
Expand Down Expand Up @@ -4664,6 +4829,39 @@
"responses": {
"204": {
"description": "Indicates a successful call."
},
"403": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"error": {
"enum": [
"Forbidden"
],
"type": "string"
},
"message": {
"type": "string"
},
"statusCode": {
"enum": [
403
],
"type": "integer"
}
},
"required": [
"statusCode",
"error",
"message"
],
"type": "object"
}
}
},
"description": "Indicates that this call is forbidden."
}
},
"summary": "Mute an alert",
Expand Down Expand Up @@ -4720,6 +4918,39 @@
"responses": {
"204": {
"description": "Indicates a successful call."
},
"403": {
"content": {
"application/json; Elastic-Api-Version=2023-10-31": {
"schema": {
"additionalProperties": false,
"properties": {
"error": {
"enum": [
"Forbidden"
],
"type": "string"
},
"message": {
"type": "string"
},
"statusCode": {
"enum": [
403
],
"type": "integer"
}
},
"required": [
"statusCode",
"error",
"message"
],
"type": "object"
}
}
},
"description": "Indicates that this call is forbidden."
}
},
"summary": "Unmute an alert",
Expand Down
Loading