Handling Sequential Operations with REST
summary
The talk explains how to handle sequences of REST operations where you must create two different resources in a specific order and wait for each request to succeed or fail. It presents a method for modeling and executing ordered, dependent API actions using API Platform, focusing on mapping each operation to a resource (IRI + HTTP verb + headers/payload) and coordinating their execution.
AI-written summary · about
chapters (26)
- 0:00Sequential operations intro
- 1:05What are sequential ops?
- 3:15REST and stateless
- 4:40HTTP pipelining
- 8:59HTTP technique limits
- 9:41Batch endpoint concept
- 10:03HTTP request structure
- 11:08IETF batch draft
- 12:53Multipart HTTP explained
- 15:23OData batch spec
- 17:48PHP multipart parsing
- 21:50Custom multipart parser
- 22:31API Platform batch
- 26:03JSON batch format
- 27:12Nested batch requests
- 28:19Debugging with Symfony
- 29:05Error handling and tx
- 30:35Content-ID references
- 31:51JSON groups
- 32:57Batch alternatives
- 33:39REST vs RPC in API Platform
- 34:21Current implementation
- 35:48Testing and docs
- 36:30OData compatibility
- 37:13Future HTTP batch
- 37:41Q&A
