An Endpoint is an immutable value object identifying a specific REST API operation. It consists of:
More...
#include <endpoint.h>
|
|
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 |
| |
An Endpoint is an immutable value object identifying a specific REST API operation. It consists of:
- HTTP method (GET, POST, DELETE, etc.)
- Path template (e.g., "/v1/{prefix}/namespaces/{namespace}")
◆ 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
-
| str | String 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
-
| method | HTTP method (GET, POST, etc.) |
| path | Path 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:
- iceberg/catalog/rest/endpoint.h
- iceberg/catalog/rest/endpoint.cc