VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
DtConfigureController Class Reference

DtConfigureController — REST endpoints for configuring the webserver itself.

Routes: GET /api/configure/command-specs — list all RW command types PUT /api/configure/command-specs/{commandType} — update one entry GET /api/configure/icons — list icon filenames in public/icons/ GET /api/configure/filters — list entity filters in public/filters/ DELETE /api/configure/sessions/{sessionId} — forcibly close a session by integer ID

Inheritance diagram for DtConfigureController:
Inheritance graph
[legend]

Public Member Functions

 DtConfigureController (const std::shared_ptr< ObjectMapper > &objectMapper, const std::string &publicDir)
 
 ENDPOINT_INFO (getRwCommandSpecs)
 
 ENDPOINT ("GET","/api/configure/command-specs", getRwCommandSpecs, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (updateRwCommandSpec)
 
 ENDPOINT ("PUT","/api/configure/command-specs/{commandType}", updateRwCommandSpec, PATH(String, commandType), REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (getIcons)
 
 ENDPOINT ("GET","/api/configure/icons", getIcons, REQUEST(std::shared_ptr< IncomingRequest >, request))
 
 ENDPOINT_INFO (getFilters)
 
 ENDPOINT_INFO (deleteSession)
 
 ENDPOINT ("DELETE","/api/configure/sessions/{sessionId}", deleteSession, PATH(String, sessionId), REQUEST(std::shared_ptr< IncomingRequest >, request))
 

Private Member Functions

std::shared_ptr< OutgoingResponse > handleGetRwCommandSpecs (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleUpdateRwCommandSpec (const std::shared_ptr< IncomingRequest > &req, const String &commandType)
 
std::shared_ptr< OutgoingResponse > handleGetIcons (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleGetFilters (const std::shared_ptr< IncomingRequest > &req)
 
std::shared_ptr< OutgoingResponse > handleDeleteSession (const std::shared_ptr< IncomingRequest > &req, const String &sessionId)
 

Private Attributes

std::string myPublicDir
 

Constructor & Destructor Documentation

DtConfigureController::DtConfigureController ( const std::shared_ptr< ObjectMapper > &  objectMapper,
const std::string &  publicDir 
)
inline

References myPublicDir.

Member Function Documentation

DtConfigureController::ENDPOINT_INFO ( getRwCommandSpecs  )
inline
DtConfigureController::ENDPOINT ( "GET"  ,
"/api/configure/command-specs"  ,
getRwCommandSpecs  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtConfigureController::ENDPOINT_INFO ( updateRwCommandSpec  )
inline
DtConfigureController::ENDPOINT ( "PUT"  ,
"/api/configure/command-specs/{commandType}"  ,
updateRwCommandSpec  ,
PATH(String, commandType)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline
DtConfigureController::ENDPOINT_INFO ( getIcons  )
inline
DtConfigureController::ENDPOINT ( "GET"  ,
"/api/configure/icons"  ,
getIcons  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline

References handleGetIcons().

DtConfigureController::ENDPOINT_INFO ( getFilters  )
inline
DtConfigureController::ENDPOINT_INFO ( deleteSession  )
inline
DtConfigureController::ENDPOINT ( "DELETE"  ,
"/api/configure/sessions/{sessionId}"  ,
deleteSession  ,
PATH(String, sessionId)  ,
REQUEST(std::shared_ptr< IncomingRequest >, request)   
)
inline

References handleDeleteSession().

std::shared_ptr<OutgoingResponse> DtConfigureController::handleGetRwCommandSpecs ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtConfigureController::handleUpdateRwCommandSpec ( const std::shared_ptr< IncomingRequest > &  req,
const String &  commandType 
)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtConfigureController::handleGetIcons ( const std::shared_ptr< IncomingRequest > &  req)
private

Referenced by ENDPOINT().

std::shared_ptr<OutgoingResponse> DtConfigureController::handleGetFilters ( const std::shared_ptr< IncomingRequest > &  req)
private
std::shared_ptr<OutgoingResponse> DtConfigureController::handleDeleteSession ( const std::shared_ptr< IncomingRequest > &  req,
const String &  sessionId 
)
private

Referenced by ENDPOINT().

Member Data Documentation

std::string DtConfigureController::myPublicDir
private

Referenced by DtConfigureController().


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)