-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] OAS schema registration for Rule APIs #187574
Labels
Feature:Alerting
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
Comments
dmlemeshko
added
the
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
label
Jul 8, 2024
Pinging @elastic/response-ops (Team:ResponseOps) |
js-jankisalvi
added a commit
that referenced
this issue
Jul 24, 2024
## Summary Issue: #187574 This PR updates `request` and `response` schemas below for rule APIs to generate OAS documentation: - `POST /api/alerting/rule/{id?}` - `GET /api/alerting/rule/{id}` - `DELETE /api/alerting/rule/{id}` - `PUT /api/alerting/rule/{id}` - `GET /api/alerting/rules/_find` - `POST /api/alerting/rule/{rule_id}/alert/{alert_id}/_mute` ### How to test 1. Start ES 2. Add `server.oas.enabled: true` to `kibana.dev.yml` 3. Start Kibana `yarn start --no-base-path` 4. `curl -s -uelastic:changeme http://localhost:5601/api/oas\?pathStartsWith\=/api/alerting/rule/ | jq` 5. For find api run `curl -s -uelastic:changeme http://localhost:5601/api/oas\?pathStartsWith\=/api/alerting/rules/ | jq`
adcoelho
added a commit
that referenced
this issue
Jul 26, 2024
… APIs (#189153) ## Summary Issue: #187574 This PR updates `request` and `response` schemas below for rule APIs to generate OAS documentation: - `POST /api/alerting/rule/{id?}/_enable` - `POST /api/alerting/rule/{id?}/_disable` - `POST /api/alerting/rule/{id?}/_update_api_key` ### How to test 1. Start ES 2. Add `server.oas.enabled: true` to `kibana.dev.yml` 3. Start Kibana `yarn start --no-base-path` 4. `curl -s -u elastic:changeme http://localhost:5601/api/oas\?pathStartsWith\=/api/alerting/rule/ | jq` 5. Look for `_enable`, `_disable` and `_update_api_key` in the resulting JSON
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Feature:Alerting
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
Towards #187356 we should register the OAS schema for the following APIs. Requirements:
access: 'public'
propertyaddVersion
propertydescription
meta propertyDocumentation: https://docs.elastic.dev/kibana-dev-docs/genereating-oas-for-http-apis
Example PR that registers OAS schema: #181277
APIS
The text was updated successfully, but these errors were encountered: