Appearance
Elody Collection
collection-api is where the data lives. It is a Flask REST service that stores entities and mediafiles in MongoDB, validates every write, decides who may read or change what, and tells the rest of the platform when something changed.
GraphQL service ─┐
importers, OCR, ─┼──REST──▶ collection-api ──▶ MongoDB
transcoder ┘ │
└──events──▶ RabbitMQ ──▶ history, transcode, …Every client runs the same collection-api image. What makes it a garage network rather than anything else is the client module mounted into api/apps/: the object configurations that define each entity type, their validators, the roles and the permissions.py that ties them together. See how a client extends the core.
Where to start
New to collection-api? Read these in order:
- Collection API Reference lists every endpoint, and shows what an entity looks like on the wire.
- Advanced Filtering is how you find anything: the filter language behind
POST /entities/filter. - Policies & Permissions explains why a request gets a
403, and how to give a role access.
The examples use the garage network: garages, their employees, customers, cars, parts and work orders.
Reference
| Page | What it covers |
|---|---|
| Collection API Reference | The base REST endpoints, with request and response examples |
Querying
| Page | What it covers |
|---|---|
| Advanced Filtering | Filter types and matchers, relation filters, facets, aggregation and count limits |
Security
| Page | What it covers |
|---|---|
| Policies & Permissions | Roles, create/read/update/delete rules, object and key restrictions, and how policies are wired |
Services
| Page | What it covers |
|---|---|
| Emails | Templated HTML emails over SMTP, and extending the base email service for a client |