Skip to content

[Doc] all the links to the admin REST API reference doc are broken #21573

Description

@jak78

Search before asking

  • I searched in the issues and found nothing similar.

What issue do you find in Pulsar docs?

Description

There are links to the API reference documentation in the admin API documentation. They are generated by @inject instructions in the markdown files.

Since Pulsar 3, each of these links is broken. Indeed, since Pulsar 3, in the API reference documentation, the operation names have changed. For example: getSchema has become SchemasResource_getSchema. This change has caused all the links generated by @inject from the markdown documentation to be broken.

My estimate: more than 180 links are broken.

Example

admin-api-schemas.md

Send a `GET` request to this endpoint: {@inject: endpoint|GET|/admin/v2/schemas/:tenant/:namespace/:topic/schema|operation/getSchema?version=@pulsar:version_number@}

Genrated display

Screenshot 2023-11-13 at 12 40 36 PM

Generated link on Pulsar 2.11. docs

https://pulsar.apache.org/admin-rest-api?version=2.11.1&apiversion=v2#operation/getSchema

This link works because the operation on the Pulsar 2.x API reference doc is getSchema

Generated link on Pulsar 3.1.1 docs

https://pulsar.apache.org/admin-rest-api?version=3.1.1&apiversion=v2#operation/getSchema

This link does not work because the operation on the Pulsar 3.x API reference doc is SchemasResource_getSchema instead of getSchema

What is your suggestion?

I have no better idea than fixing the operation name on each of 188 @injectoccurence. This is tedious. Feel free to suggest a better idea.

Any reference?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/siteAbout https://pulsar.apache.org/doc-requiredYour PR changes impact docs and you will update later.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions