MySQL 9.7.0
Source Code Documentation
rest_host_cache_spec.cc File Reference
#include "rest_host_cache_spec.h"
#include <array>
#include <string>
#include <string_view>
#include <rapidjson/document.h>
#include <rapidjson/pointer.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/schema.h>
#include "mysqlrouter/rest_api_component.h"

Typedefs

using JsonPointer = RestApiComponent::JsonPointer
 
using JsonValue = RestApiComponent::JsonValue
 

Functions

static JsonPointer::Token make_json_pointer_token (std::string_view token)
 
static std::string json_pointer_stringfy (const JsonPointer &ptr)
 
void append_specification (RestApiComponent::JsonDocument &spec_doc)
 

Variables

static const std::array host_cache_entries_def_tokens
 
static const std::array host_cache_config_def_tokens
 
static const std::array host_cache_status_def_tokens
 
static const std::array host_cache_status_path_tokens
 
static const std::array host_cache_config_path_tokens
 
static const std::array host_cache_entries_path_tokens
 
static const std::array tags_append_tokens
 

Typedef Documentation

◆ JsonPointer

◆ JsonValue

Function Documentation

◆ append_specification()

void append_specification ( RestApiComponent::JsonDocument spec_doc)

◆ json_pointer_stringfy()

static std::string json_pointer_stringfy ( const JsonPointer ptr)
static

◆ make_json_pointer_token()

static JsonPointer::Token make_json_pointer_token ( std::string_view  token)
static

Variable Documentation

◆ host_cache_config_def_tokens

const std::array host_cache_config_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("HostCacheConfig"),
}
static JsonPointer::Token make_json_pointer_token(std::string_view token)
Definition: rest_host_cache_spec.cc:46

◆ host_cache_config_path_tokens

const std::array host_cache_config_path_tokens
static
Initial value:
{
make_json_pointer_token("/host_cache/config"),
}

◆ host_cache_entries_def_tokens

const std::array host_cache_entries_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("HostCacheEntries"),
}

◆ host_cache_entries_path_tokens

const std::array host_cache_entries_path_tokens
static
Initial value:
{
make_json_pointer_token("/host_cache/entries"),
}

◆ host_cache_status_def_tokens

const std::array host_cache_status_def_tokens
static
Initial value:
{
make_json_pointer_token("definitions"),
make_json_pointer_token("HostCacheStatus"),
}

◆ host_cache_status_path_tokens

const std::array host_cache_status_path_tokens
static
Initial value:
{
make_json_pointer_token("/host_cache/status"),
}

◆ tags_append_tokens

const std::array tags_append_tokens
static
Initial value: