Projects API
Projects centralise the work of the association (orders, internal builds, workshops): lifecycle, needs, products to make, costs, files, linked events, inventory items and borrowing sheets.
Lifecycle: draft → quoted → in_progress → delivered → invoiced → closed, plus cancelled from any non-final
state. Allowed transitions: draft → quoted | in_progress, quoted → draft | in_progress,
in_progress → delivered, delivered → invoiced | closed, invoiced → closed; closed and cancelled are final.
Project ARN: atl:projects:<site>:project/<id> (sub-resources need/<id>, product/<id>,
cost/<id>); the site atl:settings:<site>:site/<site> is passed to authz as parent.
Membership and rights live in authz as project roles. On creation the service (service principal)
creates two project roles, Responsable (every project permission) and Participant (project read,
files read/write, events create, issue report, purchase request), and assigns the owner to
Responsable. While authz is unreachable the project stays in the pending provisioning state
(roles.state) and a background job retries (idempotent: existing roles are reused). Project roles,
assignments and project API keys are then managed through the authz endpoints
/v1/authz/projects/{id}/roles and /v1/authz/projects/{id}/api-keys. member_ids (owner plus every
user holding a project role) is kept in sync from authz.role.v1 / authz.assignment.v1 events.
Access: the owner holds every project permission on their project. Reading needs
projects.project.read on the project (or membership, or projects.project.read_all in admin mode);
unreadable projects answer 404. Editing details, status and manual costs needs
projects.project.update; deleting projects.project.delete. Needs and products can be edited by
every project member and by projects.project.update holders. Lists are filtered with the Lookup scope
of projects.project.read (plus read_all in admin mode) and always include the caller's projects.
Files are stored by the files service with the project ARN as owner (projects.file.read /
projects.file.write); the projects service is a files delegate so that the owner (and members for
reading) keep access while roles are being provisioned.
Events: projects.project.v1 (created, updated, status_changed, member_added,
member_removed, deleted; identifiers, names and tags only).
Authentication
- API Key: session
- HTTP: Bearer Auth
Security Scheme Type: | apiKey |
|---|---|
Cookie parameter name: | atl_session |
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | bearer |