@withpotter/behaviors — module reference

HTTP routes this module mounts, plus its internal use-cases, entities, and repositories. The exhaustive request/response contract is the engine’s OpenAPI document at /docs; the layered structure below follows the package internal architecture.

HTTP routes

Behaviors /behaviors

MethodPathAuthDescription
GET/behaviorsList all available behaviors
GET/behaviors/:idGet a single behavior by ID

Internals

Use-cases

Application operations. Each is a single-purpose class with one execute() method.

Use-caseSignature
GetBehaviorUseCaseexecute(id: string): BehaviorDefinition
ListBehaviorsUseCaseexecute(): BehaviorDefinition[]

Generated from the module’s source. Routes are relative to the engine root (default http://localhost:3001). For full request/response schemas use the live OpenAPI document.