2025, an API Platform Odyssey
summary
Claim: API Platform turns an Eloquent model into a fully paginated HAL/JSON-LD API with one attribute and two config lines, demonstrated in Laravel + SQLite with a seeded set of 45 emails. API Platform creates an API from one attribute — pagination, links and HAL output appear automatically. HATEOAS actions like a custom "deactivate" require adding an attribute plus a normalizer decorator that uses reflection. Works for rapid prototyping; production HATEOAS needs explicit link classes and care for scale and routing.
AI-written summary · about
chapters (10)
- 0:00Introduction and welcome
- 2:55What is HAL and why it matters
- 8:16HAL vs HATIOS explained
- 12:11Why standards still matter today
- 16:26Use cases for HATIOS in APIs
- 18:55Can I API Platform it?
- 22:27API Platform’s automatic magic
- 25:21Switching to HAL and HATIOS
- 28:10Implementing HATIOS links
- 33:05Conclusion and future of APIs
