CCF
|
#include <endpoint_registry.h>
Inherits ccf::endpoints::Endpoint.
Public Member Functions | |
PathTemplatedEndpoint (const Endpoint &e) | |
![]() | |
Endpoint & | set_openapi_description (const std::string &description) |
Endpoint & | set_openapi_summary (const std::string &summary) |
Endpoint & | set_openapi_deprecated (bool is_deprecated) |
Endpoint & | set_openapi_deprecated_replaced (const std::string &deprecation_version, const std::string &replacement) |
Endpoint & | set_openapi_hidden (bool hidden) |
Endpoint & | set_params_schema (const nlohmann::json &j) |
Endpoint & | set_result_schema (const nlohmann::json &j, std::optional< http_status > status=std::nullopt) |
template<typename In , typename Out > | |
Endpoint & | set_auto_schema (std::optional< http_status > status=std::nullopt) |
template<typename T > | |
Endpoint & | set_auto_schema (std::optional< http_status > status=std::nullopt) |
template<typename T > | |
Endpoint & | add_query_parameter (const std::string ¶m_name, QueryParamPresence presence=RequiredParameter) |
Endpoint & | set_forwarding_required (ForwardingRequired fr) |
Endpoint & | set_redirection_strategy (RedirectionStrategy rs) |
void | install () |
![]() | |
virtual | ~EndpointDefinition ()=default |
Public Attributes | |
PathTemplateSpec | spec |
![]() | |
EndpointFunction | func = {} |
LocallyCommittedEndpointFunction | locally_committed_func = {} |
Installer * | installer |
std::vector< SchemaBuilderFn > | schema_builders = {} |
bool | openapi_hidden = false |
http_status | success_status = HTTP_STATUS_OK |
nlohmann::json | params_schema = nullptr |
nlohmann::json | result_schema = nullptr |
std::optional< std::string > | openapi_summary = std::nullopt |
std::optional< std::string > | openapi_description = std::nullopt |
std::optional< bool > | openapi_deprecated = std::nullopt |
![]() | |
EndpointKey | dispatch |
URI | full_uri_path |
Full URI path to endpoint, including method prefix. | |
EndpointProperties | properties |
AuthnPolicies | authn_policies |
Additional Inherited Members | |
![]() | |
using | SchemaBuilderFn = std::function< void(nlohmann::json &, const Endpoint &)> |
|
inline |
PathTemplateSpec ccf::endpoints::PathTemplatedEndpoint::spec |