#include <rest_api_plugin.h>
◆ PathList
◆ RestApi() [1/3]
RestApi::RestApi |
( |
const std::string & |
uri_prefix, |
|
|
const std::string & |
uri_prefix_regex |
|
) |
| |
◆ RestApi() [2/3]
RestApi::RestApi |
( |
const RestApi & |
| ) |
|
|
delete |
◆ RestApi() [3/3]
◆ add_path()
void RestApi::add_path |
( |
const std::string & |
path, |
|
|
std::unique_ptr< BaseRestApiHandler > |
handler |
|
) |
| |
add handler for URI path.
◆ handle_paths()
handle request for all register URI paths.
if no handler accepts the request, a HTTP response with status 404 will be sent.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ process_spec()
process the spec's Json JsonDocument.
◆ remove_path()
void RestApi::remove_path |
( |
const std::string & |
path | ) |
|
remove handle for URI path.
◆ spec()
std::string RestApi::spec |
( |
| ) |
|
◆ uri_prefix()
std::string RestApi::uri_prefix |
( |
| ) |
const |
|
inline |
◆ uri_prefix_regex()
std::string RestApi::uri_prefix_regex |
( |
| ) |
const |
|
inline |
get the regex for the URI path prefix.
◆ rest_api_handler_mutex_
std::shared_timed_mutex RestApi::rest_api_handler_mutex_ |
|
protected |
◆ rest_api_handlers_
std::list< std::tuple<std::string, std::regex, std::unique_ptr<BaseRestApiHandler> > > RestApi::rest_api_handlers_ |
|
protected |
◆ spec_doc_
◆ spec_doc_mutex_
std::mutex RestApi::spec_doc_mutex_ |
|
protected |
◆ uri_prefix_
std::string RestApi::uri_prefix_ |
|
protected |
◆ uri_prefix_regex_
std::string RestApi::uri_prefix_regex_ |
|
protected |
The documentation for this class was generated from the following files: