3 ms·
> In HTTP you have resources, and resources are not flat, they are hierarchical. That isn't really true. There is nothing about HTTP, or even REST, that requir
by twic 10y ago
> In HTTP you have resources, and resources are not flat, they are hierarchical.
That isn't really true. There is nothing about HTTP, or even REST, that requires resources to be hierarchical. That said, it is quite common, and helpful for human beings, if they are hierarchical, so ...
> I wonder why frameworks built this way are so uncommon
Good question! The only one that springs to mind is Stapler:
http://stapler.kohsuke.org/what-is.html http://stapler.kohsuke.org/what-is.html
- peclink 10y agoThere is Bullet http://bulletphp.com http://bulletphp.com, that inspired us, but it is too simple and lacks some important (for us) features, e.g. recursion. There are nested routes in Express and some Golang libraries (see gongular near on HN), but they are not resource oriented. And yes, there are resources in Rails, but it's sooo complex and heavy.