REST Principles
REST Principles
The public API is intentionally resource-oriented.
Rules
- Prefer nouns over verbs.
- Use query parameters for filters.
- Keep paths short and stable.
- Avoid prefixed public URLs.
- Return the resource being acted on when that makes sense.
- Use
404for missing org-scoped resources.
Path shape
/auth/*for authentication/sessionfor active-space switching/spacesfor org discovery/bookingsfor booking lifecycle/recordsfor personal records/resultsfor WOD results/healthfor runtime checks
Examples
Good:
curl 'https://api.vytal.fit/results?memberId=mem_123&wodId=wod_123'Less good:
curl 'https://api.vytal.fit/results?memberId=mem_123'Why this matters
- Easier to document
- Easier to test
- Easier to use from mobile and partner tools
- Easier to keep stable across app splits