Timeline for Pattern Matching on Request Body for Routing an HTTP Request
Current License: CC BY-SA 4.0
15 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 18, 2024 at 20:34 | audit | Suggested edits | |||
| May 18, 2024 at 22:00 | |||||
| Apr 29, 2024 at 21:14 | history | protected | gnat | ||
| Apr 29, 2024 at 14:50 | review | Close votes | |||
| May 4, 2024 at 3:11 | |||||
| Apr 29, 2024 at 14:39 | answer | added | JimmyJames | timeline score: 5 | |
| Apr 29, 2024 at 14:21 | answer | added | André LFS Bacci | timeline score: 0 | |
| Apr 29, 2024 at 10:26 | comment | added | jcaron | Note also that routing usually occurs way before the body is read: the body could contain a large file upload, and you don't want the router to start reading all that into memory before finally deciding (possibly without even needing the body at all) where to route the request. And controllers may handle the body via very different APIs depending on the context (read the whole body at once in some cases, use streaming in others, and the latter may be get confused if the router has already read the body or part of it). | |
| Apr 29, 2024 at 10:12 | comment | added | jcaron |
This would be a lot more likely to use a PATCH rather than PUT. But I'm far from convinced this should use different controllers. It should probably a single controller which checks all data in the update and calls separate functions/methods/whatever to update the relevant data.
|
|
| Apr 29, 2024 at 9:42 | comment | added | pjc50 | "I think there is some semantic benefit in having exactly one path for all updates of a entity, in different ways" - almost everyone else thinks the exact opposite, which is why this is hard to represent in OpenAPI. Fairly easy to implement though, you just have a meta controller that forwards to one of the two implementations. | |
| Apr 29, 2024 at 9:30 | answer | added | Ewan | timeline score: 3 | |
| Apr 29, 2024 at 8:37 | comment | added | Ewan | you can do this with a software router like haproxy or nginx stackoverflow.com/questions/23259843/… | |
| Apr 29, 2024 at 7:07 | history | became hot network question | |||
| Apr 29, 2024 at 3:53 | answer | added | Flater | timeline score: 27 | |
| Apr 29, 2024 at 3:32 | answer | added | Greg Burghardt | timeline score: 2 | |
| S Apr 28, 2024 at 21:12 | review | First questions | |||
| Apr 29, 2024 at 3:57 | |||||
| S Apr 28, 2024 at 21:12 | history | asked | Jonathan Herrera | CC BY-SA 4.0 |