Skip to content

URL in REST API spec isn't perfect #40596

@nik9000

Description

@nik9000

In the rest-api-spec the we have an entry like:

    "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html",

The trouble with these is that we don't tend to update them in release branches. The 5.6 branch has:

    "documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/5.x/docs-get.html",

That link is dead now. Further, 6.4 has:

    "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html",

If we're going to have these urls we should probably keep them up to date. This comes up when folks like @delvedor use those URLs in their generated documentation. They cause the docs build to fail because the referenced page doesn't exist.

Another option is to drop the prefix part of the url an rely on clients to "know" it. That'd be fine when generating documentation because we already have that prefix sitting around in an asciidoc variable but it'd be less nice for other folks that use the documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions