|
iceberg-cpp
|
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< Endpoint > | Make (HttpMethod method, std::string_view path) |
| Make an endpoint with method and path template. | |
| static Result< Endpoint > | FromString (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 () |
| static Endpoint | PlanTableScan () |
| static Endpoint | FetchPlanningResult () |
| static Endpoint | CancelPlanning () |
| static Endpoint | FetchScanTasks () |
An Endpoint is an immutable value object identifying a specific REST API operation. It consists of:
Parse endpoint from string representation. "METHOD" have to be all upper-cased.
| str | String in format "METHOD /path/template" (e.g., "GET /v1/namespaces") |
|
static |
Make an endpoint with method and path template.
| method | HTTP method (GET, POST, etc.) |
| path | Path template with placeholders (e.g., "/v1/{prefix}/tables") |