Contributing¶
Living documents¶
| File | Purpose | Update when |
|---|---|---|
ARCHITECTURE.md |
Decision records | Before a non-trivial design choice |
FEATURES.md |
Authoritative list of features | A user-visible feature is added, changed or removed, in the same commit |
docs/ |
This site | Behavior described here changes |
An ADR contains status, decision, why and consequences. ADRs are never deleted: superseded ones are marked "Superseded by ADR-NNN". Reference the ADR in the commit message:
Adding an endpoint¶
flowchart LR
A["Controller<br/>in api/v4"] --> B["Service with<br/>permission check"]
B --> C["EndpointCatalog"]
C --> D["Tests"]
D --> E["FEATURES.md,<br/>docs, SDKs"]
- Add the controller method in
api/v4, with no business logic. - Implement the behavior in a service and check permissions there through
PermissionService. - Classify the endpoint in
EndpointCatalog, stating what it's supposed to require. - Add tests, using an integration test if SQL is involved.
- Update
FEATURES.md, this documentation and, if the contract changes, the SDKs insdks/pythonandsdks/java.
Changing older API versions¶
/v3 is frozen at its contract. When /v4 diverges, the /v3 delegator becomes a compatibility shim: adapt parameters
and responses there, and don't duplicate logic.
Package rules¶
- Controllers contain no business logic.
- Authorization happens in services.
internalpackages are private to their module.- Only
services/queriesandservices/graphuseGraphDB; everything else reads PostgreSQL.
Changing the database¶
Add a Flyway migration and don't edit existing ones.
Unclear design?¶
If the reasoning behind a feature or design isn't clear, check the decision records and ask before changing it.