pub trait RestApiCapability: Send + Sync {
// Required method
fn register_rest(
&self,
ctx: &ModuleCtx,
router: Router,
openapi: &dyn OpenApiRegistry,
) -> Result<Router>;
}Expand description
REST API capability: Pure wiring; must be sync. Runs AFTER DB migrations.