CCF
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
api_version.h File Reference
#include "ccf/http_query.h"
#include "ccf/json_handler.h"
#include <string>

Go to the source code of this file.

Namespaces

namespace  ccf
 
namespace  ccf::gov
 
namespace  ccf::gov::endpoints
 

Enumerations

enum class  ccf::gov::endpoints::ApiVersion { ccf::gov::endpoints::preview_v1 , ccf::gov::endpoints::MIN = preview_v1 , ccf::gov::endpoints::v1 }
 

Functions

std::optional< ApiVersionccf::gov::endpoints::get_api_version (ccf::endpoints::CommandEndpointContext &ctx, ApiVersion min_accepted, const char **error_code=nullptr)
 
template<typename Fn >
auto ccf::gov::endpoints::api_version_adapter (Fn &&f, ApiVersion min_accepted=ApiVersion::MIN)