This is an automated email from the ASF dual-hosted git repository.

gangwu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-cpp.git


The following commit(s) were added to refs/heads/main by this push:
     new d328d0a7 fix: use /v1/config endpoint for catalog config (#481)
d328d0a7 is described below

commit d328d0a7e03fc9e784c3d932281cdc1336251a6c
Author: Jiajia Li <[email protected]>
AuthorDate: Sat Jan 3 22:21:20 2026 +0800

    fix: use /v1/config endpoint for catalog config (#481)
---
 src/iceberg/catalog/rest/resource_paths.cc | 2 +-
 src/iceberg/catalog/rest/resource_paths.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/iceberg/catalog/rest/resource_paths.cc 
b/src/iceberg/catalog/rest/resource_paths.cc
index c81467c4..462b0376 100644
--- a/src/iceberg/catalog/rest/resource_paths.cc
+++ b/src/iceberg/catalog/rest/resource_paths.cc
@@ -47,7 +47,7 @@ Status ResourcePaths::SetBaseUri(const std::string& base_uri) 
{
 }
 
 Result<std::string> ResourcePaths::Config() const {
-  return std::format("{}/v1/{}config", base_uri_, prefix_);
+  return std::format("{}/v1/config", base_uri_);
 }
 
 Result<std::string> ResourcePaths::OAuth2Tokens() const {
diff --git a/src/iceberg/catalog/rest/resource_paths.h 
b/src/iceberg/catalog/rest/resource_paths.h
index 9d0bdda6..06971179 100644
--- a/src/iceberg/catalog/rest/resource_paths.h
+++ b/src/iceberg/catalog/rest/resource_paths.h
@@ -47,7 +47,7 @@ class ICEBERG_REST_EXPORT ResourcePaths {
   /// \brief Set the base URI of the REST catalog server.
   Status SetBaseUri(const std::string& base_uri);
 
-  /// \brief Get the /v1/{prefix}/config endpoint path.
+  /// \brief Get the /v1/config endpoint path.
   Result<std::string> Config() const;
 
   /// \brief Get the /v1/{prefix}/oauth/tokens endpoint path.

Reply via email to