Earlier quoted context omitted.
> what resource is it acting on? The distance between the two cities. > You have to come up with some added, unnecessary, implementation-exposing abstraction like "CityPair". This is a really weird thing to say. No, you don't. I have no idea why you would think that. > What are the four CRUD operations for it? [...] In which case "delete" could be ill-defined Not every method has to be valid for every resource. It's…
>>what resource is it acting on? >The distance between the two cities. Don't be cute. What server resource is it acting on? The value of the distances is (potentially) computed by some encapsulated algorithm -- you're not acting on that resource. The server resources that are touched are the two cities, and then whatever it does behind the scenes. >This is a really weird thing to say. No, you don't. I have no idea wh…
Also, while POST can mean "create", it can also mean "append" or "process some arbitrary request."