slimphp / Slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs.
http://slimframework.com
MIT License
11.98k stars 1.95k forks source link

Remove sub-request functionality #2044

Closed codeguy closed 7 years ago

far-blue commented 7 years ago

out of curiosity, are sub-requests being superseded by something 'better' or just considered a bad idea?

I am currently investigating using sub-requests to support multiplexed update requests via PATCH - where the PATCH payload is actually a batch of partial updates to possibly multiple different records and which need to be unpacked and dispatched as if they were individual PUT / POST / DELETE requests. Kind of like https://tools.ietf.org/html/rfc6902 but for REST requests. This reduces the number of individual REST requests.

If not sub-requests, any suggestions on how this could still work?

codeguy commented 7 years ago

Resolved.