10#ifndef MANTISBASE_TYPES_H
11#define MANTISBASE_TYPES_H
13#include <nlohmann/json.hpp>
29 namespace fs = std::filesystem;
46 using json = nlohmann::json;
111#define REQUEST_HANDLED MbHandlerResponse::Handled;
112#define REQUEST_PENDING MbHandlerResponse::Unhandled;
MantisBase entry point.
Definition mantisbase.h:54
Create, list, revoke, and resolve API keys for entity users and admins.
Definition api_keys.h:54
MbAppMixin & operator=(const MbAppMixin &)=delete
MbAppMixin & operator=(MbAppMixin &&)=delete
const MbLogger & logger() const
Definition types.cpp:12
MbAppMixin(const MantisBase &app)
Constrictor for instantiating this interface.
Definition types.cpp:5
MbAppMixin(const MbAppMixin &)=default
const MantisBase & mbApp() const
Application that owns this service or request context.
Definition types.cpp:8
MbAppMixin(MbAppMixin &&)=default
JWT token creation and verification utilities.
Definition auth.h:50
MbDatabase connection and session management.
Definition database.h:45
Definition entity_schema_field.h:34
Builder class for creating and managing database table schemas.
Definition entity_schema.h:39
Represents a database table/entity with schema and CRUD operations.
Definition entity.h:55
File management for entity file assets.
Definition files.h:52
Manages application settings.
Definition kv_store.h:26
OAuth provider registry, entity enablement, and login/link flows.
Definition oauth.h:51
HTTP request wrapper bound to a MantisBase instance.
Definition http.h:66
HTTP response wrapper bound to a MantisBase instance.
Definition http.h:213
Central HTTP router and schema cache for a MantisBase instance.
Definition router.h:40
DLL/shared-library symbol visibility macros for MantisBase.
#define MANTISBASE_API
Definition export.h:31
std::vector< MbMiddlewareFn > MbMiddlewares
Definition types.h:66
std::string MbMethod
Definition types.h:67
std::string MbPath
Definition types.h:68
MbHandlerResponse
Middleware short-circuit result: stop or continue the chain.
Definition types.h:51
@ Unhandled
Definition types.h:53
@ Handled
Definition types.h:52
nlohmann::json json
Shorten JSON namespace.
Definition api_keys.h:36
std::function< void(MbRequest &, MbResponse &)> MbHandlerFn
Standard route handler (request, response).
Definition types.h:64
std::function< MbHandlerResponse(MbRequest &, MbResponse &)> MbMiddlewareFn
Definition types.h:65
std::pair< MbMethod, MbPath > MbRouteKey
Route lookup key: HTTP method + path pattern.
Definition types.h:73