NOTWENNODE
NOTWEN RESOURCENotwen Interactionsnotwen_interactions
DOC SECTION05 / 07

notwen_interactions · API & Exports

API & Exports

Stable contracts between Notwen resources for Notwen Interactions.

Boundary note

Client interaction is presentation and input. Validation and authoritative state transitions belong on the server.

01

Exports

Prefer small, explicit exports for synchronous lookups and commands.

02

Events

Use events for state changes and between resources notifications that do not require a direct response.

03

Data contracts

Keep payloads versionable, validated and limited to data consumers actually need.

contract styleillustrative
-- Keep public contracts narrow and documented.
-- Validate input at the resource boundary.
-- Avoid consumers reaching into internal state.