-
Notifications
You must be signed in to change notification settings - Fork 80
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
Adds missing doc details for ML get calendar APIs #852
Conversation
The docs for the get scheduled events endpoint stated that the arguments could be sent in a request body instead of in URL arguments. The spec was inconsistent with this. Additionally, GET endpoints that allow a request body need to support POST too, for the benefit of clients that do not support GETs with bodies. This change adds the option to POST a get scheduled events request and adjusts the spec to permit this. Relates to elastic/elasticsearch-specification#852
This is blocked on elastic/elasticsearch#79271 |
@sethmlarson per your discussion in elastic/elasticsearch#78923, it seems like we'll need to add an exception ( re #831) for these APIs. Is that feasible? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left two comments about the request body of ml.get_calendars
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR updates get_calendar_events and get_calendars with info from the documentation (https://www.elastic.co/guide/en/elasticsearch/reference/master/ml-get-calendar-event.html, https://www.elastic.co/guide/en/elasticsearch/reference/master/ml-get-calendar.html).
NOTE: The request body is omitted from the get calendar events API, per elastic/elasticsearch#79271