-
Notifications
You must be signed in to change notification settings - Fork 20
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
[Feedback]: Elastic-api-version in the Kibana API examples #142
Comments
This also causes responsive issues... Because of the length of text, there is overflow in the If the elasticsearch docs do not specify |
This relates to the outstanding elastic/elasticsearch-specification#2747
|
I ran a local test against a default-8.17.0-8.x-235 environment, using one of the examples in https://www.elastic.co/docs/api/doc/kibana/operation/operation-post-actions-connector-id :
It completes successfully:
Therefore the header information seems to be extraneous but not erroneous. |
elastic/kibana#202923 undertakes the removal of the version header info for now. |
Was the documentation helpful?
Yes
What documentation page is affected
Generated API documentation for Kibana that include a request body. For example https://www.elastic.co/docs/api/doc/kibana/operation/operation-2fapi-2fsecurity-2frole-2f-7bname-7d-2
Description
Per feedback from @sophiec20 the curl examples look like this:
That
Content-Type: application/json; Elastic-Api-Version=2023-10-31
is derived from the way we qualified the requests and responses to make it clear which version the request and response pertain to. However it's not something that should appear in the curl commands.It seems like we need to either (1) override the automated curl examples with custom examples (https://docs.bump.sh/help/specification-support/doc-code-samples/) or (2) remove the
Elastic-Api-Version=2023-10-31
qualifier from the automated output and find some other way to indicate which version header value each request and response is associated with.ES_FEEDBACK_ID: lFtk2pIBWCMSeP1oc2YL
The text was updated successfully, but these errors were encountered: