NOTWENNODE
NOTWEN RESOURCENotwen Inventorynot_inventory
DOC SECTION05 / 07

notwen_inventory · API & Exports

API & Exports

Stable contracts between Notwen resources for Notwen Inventory.

Boundary note

Inventory consumers should use the Notwen inventory contract instead of importing implementation details everywhere.

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.