iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
iceberg::rest::Endpoint Class Reference

An Endpoint is an immutable value object identifying a specific REST API operation. It consists of: More...

#include <endpoint.h>

Public Member Functions

constexpr HttpMethod method () const
 Get the HTTP method.
 
std::string_view path () const
 Get the path template.
 
std::string ToString () const
 Serialize to "METHOD /path" format.
 
constexpr bool operator== (const Endpoint &other) const
 

Static Public Member Functions

static Result< EndpointMake (HttpMethod method, std::string_view path)
 Make an endpoint with method and path template.
 
static Result< EndpointFromString (std::string_view str)
 Parse endpoint from string representation. "METHOD" have to be all upper-cased.
 
static Endpoint ListNamespaces ()
 
static Endpoint GetNamespaceProperties ()
 
static Endpoint NamespaceExists ()
 
static Endpoint CreateNamespace ()
 
static Endpoint UpdateNamespace ()
 
static Endpoint DropNamespace ()
 
static Endpoint ListTables ()
 
static Endpoint LoadTable ()
 
static Endpoint TableExists ()
 
static Endpoint CreateTable ()
 
static Endpoint UpdateTable ()
 
static Endpoint DeleteTable ()
 
static Endpoint RenameTable ()
 
static Endpoint RegisterTable ()
 
static Endpoint ReportMetrics ()
 
static Endpoint TableCredentials ()
 
static Endpoint CommitTransaction ()
 

Detailed Description

An Endpoint is an immutable value object identifying a specific REST API operation. It consists of:

Member Function Documentation

◆ FromString()

Result< Endpoint > iceberg::rest::Endpoint::FromString ( std::string_view  str)
static

Parse endpoint from string representation. "METHOD" have to be all upper-cased.

Parameters
strString in format "METHOD /path/template" (e.g., "GET /v1/namespaces")
Returns
Endpoint instance or error if malformed.

◆ Make()

Result< Endpoint > iceberg::rest::Endpoint::Make ( HttpMethod  method,
std::string_view  path 
)
static

Make an endpoint with method and path template.

Parameters
methodHTTP method (GET, POST, etc.)
pathPath template with placeholders (e.g., "/v1/{prefix}/tables")
Returns
Endpoint instance or error if invalid

The documentation for this class was generated from the following files: