-
Notifications
You must be signed in to change notification settings - Fork 25.4k
rest-api-spec: use url and description from Elasticsarch specification #133386
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
Conversation
Pinging @elastic/core-docs (Team:Docs) |
rest-api-spec/src/main/resources/rest-api-spec/api/_internal.delete_desired_balance.json
Outdated
Show resolved
Hide resolved
They had a whitespace that the regex did not account for.
"stability":"stable", | ||
"stability":"experimental", |
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.
This change is intentional. All other internal APIs are experimental
, which allows them to have a null
URL. This is enforced in the JSON Schema.
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. Hopefully in the long term those URLs can be generated (e.g. from https://github.com/elastic/elasticsearch-specification/blob/main/specification/_doc_ids/table.csv like we do in elasticsearch-specification) and/or contain only an id
instead of a url
so it's simpler to maintain.
Thank you @lcawl! Yes, this PR is part of the work to generate rest-api-spec from the Elasticsearch specification. All those URLs do come from |
💔 Backport failed
You can use sqren/backport to manually backport by running |
elastic#133386) * rest-api-spec: use url and description from Elasticsarch specification * Remove doc URLs for internal APIs * Fix more URLs They had a whitespace that the regex did not account for. * Fix more URLs * Fix JSON Schema validation (cherry picked from commit 8697379) # Conflicts: # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_ai21.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_llama.json
elastic#133386) * rest-api-spec: use url and description from Elasticsarch specification * Remove doc URLs for internal APIs * Fix more URLs They had a whitespace that the regex did not account for. * Fix more URLs * Fix JSON Schema validation (cherry picked from commit 8697379) # Conflicts: # rest-api-spec/src/main/resources/rest-api-spec/api/esql.get_query.json # rest-api-spec/src/main/resources/rest-api-spec/api/esql.list_queries.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_data_stream_options.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_options.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_settings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_options.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_settings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.remove_block.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_ai21.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_amazonsagemaker.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_deepseek.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_llama.json
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
elastic#133386) * rest-api-spec: use url and description from Elasticsarch specification * Remove doc URLs for internal APIs * Fix more URLs They had a whitespace that the regex did not account for. * Fix more URLs * Fix JSON Schema validation (cherry picked from commit 8697379) # Conflicts: # rest-api-spec/src/main/resources/rest-api-spec/api/esql.get_query.json # rest-api-spec/src/main/resources/rest-api-spec/api/esql.list_queries.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.remove_block.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_ai21.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_llama.json
#133386) (#133783) * rest-api-spec: use url and description from Elasticsarch specification * Remove doc URLs for internal APIs * Fix more URLs They had a whitespace that the regex did not account for. * Fix more URLs * Fix JSON Schema validation (cherry picked from commit 8697379) # Conflicts: # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_ai21.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_llama.json
#133386) (#133784) * rest-api-spec: use url and description from Elasticsarch specification * Remove doc URLs for internal APIs * Fix more URLs They had a whitespace that the regex did not account for. * Fix more URLs * Fix JSON Schema validation (cherry picked from commit 8697379) # Conflicts: # rest-api-spec/src/main/resources/rest-api-spec/api/esql.get_query.json # rest-api-spec/src/main/resources/rest-api-spec/api/esql.list_queries.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_data_stream_options.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_options.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_settings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_options.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_settings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.remove_block.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_ai21.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_amazonsagemaker.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_deepseek.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_llama.json
#133386) (#133796) * rest-api-spec: use url and description from Elasticsarch specification * Remove doc URLs for internal APIs * Fix more URLs They had a whitespace that the regex did not account for. * Fix more URLs * Fix JSON Schema validation (cherry picked from commit 8697379) # Conflicts: # rest-api-spec/src/main/resources/rest-api-spec/api/esql.get_query.json # rest-api-spec/src/main/resources/rest-api-spec/api/esql.list_queries.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.remove_block.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_ai21.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_llama.json
As a first step towards generating the rest-api-spec from the Elasticsearch specification, I'm replacing the documentation URL and description with data from the Elasticsearch specification, when available. The description is just the title instead of the full description, which would have been too long, since it's a full-blown Markdown text.