News for hackers. Stuff that matters.
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.

Re:Ask HN: Nested Resources in REST/HTTP API URLs? by Shorn on Friday August 19, 2022 @08:28PM (#32527755)
That's a neat idea. It's like a self-contained documentation / "comment" of the URL. `#` is even fairly well-known commenting character.