Skip to content

[rest] Introduce Redoc to visualize Rest API#5336

Merged
JingsongLi merged 1 commit intoapache:masterfrom
liyubin117:rest_catalog_api
Mar 25, 2025
Merged

[rest] Introduce Redoc to visualize Rest API#5336
JingsongLi merged 1 commit intoapache:masterfrom
liyubin117:rest_catalog_api

Conversation

@liyubin117
Copy link
Copy Markdown
Contributor

@liyubin117 liyubin117 commented Mar 24, 2025

Purpose

Currently, it is difficult to understand the RestCatalog API in text form (https://raw.githubusercontent.com/apache/paimon/master/paimon-open-api/rest-catalog-open-api.yaml).
We can introduce Redoc (refer to https://nordicapis.com/using-redoc-to-auto-generate-openapi-documentation/) to visualize how the API can be used as shown below. And it will automatically change with the changes of the YAML definition, without additional maintenance.
image

Tests

API and Format

Documentation

specific language governing permissions and limitations
under the License.
*/}}
<body>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this page be a separate page?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like it is not so good in hugo framework.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found the way, I will fix it after merging this PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wise consideration! it is really better to be in a separate page, thanks :)

@JingsongLi
Copy link
Copy Markdown
Contributor

Thanks @liyubin117 , Looks good to me!

@JingsongLi JingsongLi merged commit 4efa4ae into apache:master Mar 25, 2025
2 checks passed
danzhewuju pushed a commit to danzhewuju/paimon that referenced this pull request Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants