Re:Ask HN: Nested Resources in REST/HTTP API URLs?
by alganet on Friday August 19, 2022 @03:33AM
(#32518392)
A cool way of reaping benefits of both approaches is to separate client side and server side URLs.
The thing after the '#', which has been called many things in the past (hash fragment, I guess), never goes into the server, so you can play with it using JavaScript to make it meaningful to users, while keeping it simple and flat on the real HTTP requests.
The thing after the '#', which has been called many things in the past (hash fragment, I guess), never goes into the server, so you can play with it using JavaScript to make it meaningful to users, while keeping it simple and flat on the real HTTP requests.