40227-vm/backend/docs/index.md
2026-06-10 18:27:19 +02:00

3.8 KiB

Backend Documentation Index

Start Here

Read the repository rules first, then use the backend architecture document as the default development contract for backend work. Every product slice and entity has its own document following the per-slice template (Purpose / Slice Files by layer / API / Access Rules / Tenant Scope / Data Contract / Behavior / Tests / Related).

Architecture And Foundations

Auth And Access

  • auth-profile.md: sign-in, profile, GET /api/auth/me, OAuth, permission model.
  • cookie-auth.md: HttpOnly cookie sessions and refresh rotation.
  • permissions.md: the ${METHOD}_${ENTITY} permission catalog and enforcement.
  • roles.md: roles entity and role<->permission linkage.
  • users.md: users entity, invitations, and CSV bulk import.

Product Feature Slices

Generic CRUD Entity Slices

One document per entity (assembled from the shared CRUD factories; identical 9-endpoint surface — see shared-crud-factories.md).

Infrastructure Slices