Lurker News
Back to discussion

Comment by einrealist

einrealist1 reply#
What do you mean to look up travel times? I'd provide a resource that you can POST to and the server computes the travel time. There is no caching useful here. But way to create the request (like a form) can be provided by a document. And this document can be cached by a client.
SilasX1 reply#
The request will be idempotent so it shouldn't be a POST. But if it's a GET, then you're telling me I shouldn't tell the client where to put the start and end city in a request URI?
bbcbasic1 reply#
In theory you could have a query that return a list of cities and a url for each, with that url being a query to get you the second city list.
SilasX1 reply#
Right, which means that if I followed the REST principle (clients don't construct URIs), then every request must make an extra, unnecessary round trip for every parameter. Which sounds quite pointless.

Continue this thread — 1 reply