| That's kind of the point of stores: https://github.com/mpw/MPWFoundation/blob/master/Documentati... and Polymorphic Identifiers: http://objective.st/URIs/ Hierarchical paths were a good idea, let's use them. Objects were also a good idea, let's use those. A small set of verbs (GET, PUT, POST, DELETE) was also a good idea. Let's combine these! Abstract from: Path + File + POSIX I/O
URI + Resource + REST Verbs
Get:1. Polymorphic Identifiers, which subsume paths, URIs, variables, dictionary keys etc. 2. Stores, wich resolve URIs, subsume filesystems, HTTP servers, dictionaries, etc. 3. A small protocol that essentially mirrors REST verbs in-process See also: In-process REST, https://link.springer.com/chapter/10.1007/978-1-4614-9299-3_... |
Theoretically you can just make up your own verbs for HTTP and use those. In practice people stick to the common ones because they're well supported. This leads to people massaging a problem domain into the straightjacket of GET/PUT/POST/PATCH/DELETE, regardless of how well it fundamentally fits that set of verbs. (I'm also convinced nobody actually knows what "REST" means, but that's another rant for another time.)