Skip to content

Re-Introduce: Update Site's REST Catalog Spec Reference to Bundled Polaris + Iceberg API YAML#953

Merged
flyrain merged 4 commits intoapache:mainfrom
HonahX:honahx_update_site_2
Feb 6, 2025
Merged

Re-Introduce: Update Site's REST Catalog Spec Reference to Bundled Polaris + Iceberg API YAML#953
flyrain merged 4 commits intoapache:mainfrom
HonahX:honahx_update_site_2

Conversation

@HonahX
Copy link
Copy Markdown
Contributor

@HonahX HonahX commented Feb 6, 2025

Depends on #957

This PR re-introduce the #935, which is first merged and later reverted (#942) when trying to solve the site issue: #941

The site issue is now fixed with #950 so we are now ready to move forward with the site change.

Updated the website's reference to generated/bundled-polaris-catalog-service.yaml instead of rest-catalog-open-api.yaml. This change ensures that Polaris-native APIs and models can be removed from rest-catalog-open-api.yaml in the next step, allowing it to align with the released version.

cc @flyrain @jackye1995

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.

This is generated incorrectly due to a wrong reference to IcebergErrorResponse.

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.

nit: "OpenAPI" is a standard for defining APIs. It is not an API that Polaris implements: Proposal: Polaris API specification.

We can mention following OpenAPI guidelines and including the Iceberg REST API in the description of the spec.

Copy link
Copy Markdown
Contributor Author

@HonahX HonahX Feb 6, 2025

Choose a reason for hiding this comment

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

How about Apache Polaris Catalog API Specification (I've updated to that)?

Do we want to also update

title: 'Apache Polaris Management Service OpenAPI'
linkTitle: 'Management OpenAPI'
weight: 800
params:
show_page_toc: false

to something like Apache Polaris Management API Specification?

(The title won't matter much now as user will be redirected to swagger editor soon after clicking so they will have about 1 second to see the title)

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.

SGTM (both) 👍

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.

Would you mind making actual API spec changes in a separate PR? This PR's title indicates it's a "doc" change :)

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.

Removed the spec changes. Currently the generated yaml will throw some error at the top but still render the all the endpoints definition. I will opened a new PR for that fix : )

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.

Do you mean #957? I think we can merge it first.

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.

Yes! I will mark this one as depends on #957

@HonahX HonahX force-pushed the honahx_update_site_2 branch from 563b0ba to da79d77 Compare February 6, 2025 18:48
Copy link
Copy Markdown
Contributor

@flyrain flyrain left a comment

Choose a reason for hiding this comment

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

LGTM with a minor comment.

title: 'Apache Iceberg OpenAPI'
linkTitle: 'Iceberg OpenAPI'
title: 'Apache Polaris Catalog API Specification'
linkTitle: 'Catalog API Spec'
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.

Nit: As we are doing swagger editor redirection, the title won't share in the page. I think we could just remove either title or linkTitle

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.

Good point! I tried and found that removing the title can make it cleaner. We will still need linkTitle since that appears in the side bar

@flyrain flyrain enabled auto-merge (squash) February 6, 2025 23:31
@flyrain flyrain merged commit df8c111 into apache:main Feb 6, 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.

3 participants