MySQL 8.4.2
Source Code Documentation
RestApiSpecHandler Class Reference

REST API handler for /swagger.json. More...

#include <rest_api.h>

Inheritance diagram for RestApiSpecHandler:
[legend]

Public Member Functions

 RestApiSpecHandler (std::shared_ptr< RestApi > rest_api, const std::string &require_realm)
 
bool try_handle_request (http::base::Request &req, const std::string &base_path, const std::vector< std::string > &path_matches) override
 try to handle the request. More...
 
- Public Member Functions inherited from BaseRestApiHandler
 BaseRestApiHandler ()=default
 
 BaseRestApiHandler (const BaseRestApiHandler &)=default
 
 BaseRestApiHandler (BaseRestApiHandler &&)=default
 
BaseRestApiHandleroperator= (const BaseRestApiHandler &)=default
 
BaseRestApiHandleroperator= (BaseRestApiHandler &&)=default
 
virtual ~BaseRestApiHandler ()
 

Private Attributes

std::shared_ptr< RestApirest_api_
 
time_t last_modified_
 
std::string require_realm_
 

Detailed Description

REST API handler for /swagger.json.

Constructor & Destructor Documentation

◆ RestApiSpecHandler()

RestApiSpecHandler::RestApiSpecHandler ( std::shared_ptr< RestApi rest_api,
const std::string &  require_realm 
)
inline

Member Function Documentation

◆ try_handle_request()

bool RestApiSpecHandler::try_handle_request ( http::base::Request req,
const std::string &  base_path,
const std::vector< std::string > &  path_matches 
)
overridevirtual

try to handle the request.

Returns
success
Return values
truerequest has been handled and a response has been sent
falserequest has not been handled (no response has been sent)

Implements BaseRestApiHandler.

Member Data Documentation

◆ last_modified_

time_t RestApiSpecHandler::last_modified_
private

◆ require_realm_

std::string RestApiSpecHandler::require_realm_
private

◆ rest_api_

std::shared_ptr<RestApi> RestApiSpecHandler::rest_api_
private

The documentation for this class was generated from the following files: