Non-owning access to the active MantisBase from DI-aware types.
MbEntity, MbRouter, MbRequest, MbApiKeyMgr, MbOAuthMgr, and other framework types inherit this mixin so handlers and services can call mbApp() instead of a removed global singleton.
});
MbEntity entity(const std::string &entity_name) const
Fetch a table schema encapsulated by an MbEntity object from given the table name....
Definition mantisbase.cpp:414
const MantisBase & mbApp() const
Application that owns this service or request context.
Definition types.cpp:8
int countRecords(const json &filter=json::object()) const
Count records in the entity table, optionally matching a filter.
Definition entity_crud.cpp:480
HTTP request wrapper bound to a MantisBase instance.
Definition http.h:66
HTTP response wrapper bound to a MantisBase instance.
Definition http.h:213
void sendJSON(int statusCode=200, const json &data=json::object()) const
Definition http_response.cpp:126