News for hackers. Stuff that matters.
Re:Best practices for REST API design (2020) by isbvhodnvemrwvn on Monday February 22, 2021 @11:26AM (#26226341)
Of course, hitting a path without a handler is a bug, a resource which doesn't exist is a normal thing.
Re:Best practices for REST API design (2020) by jessaustin on Monday February 22, 2021 @04:02PM (#26230573)
The situation you describe is not really REST. In REST, URLs are opaque; they have no structure for clients to understand. So, clients don't make up new URLs in order to determine whether resources exist. They only use URLs that they've already been given. If they haven't received it, they don't care whether it exists. This is called "Hypermedia as the Engine of Application State".