3 ms·
"a nice URL, perhaps indicative of RESTfulness" My understanding is that "nice URLs" and "RESTfulness" are orthogonal. Difference implementations of the same R
by arethuza 14y ago
"a nice URL, perhaps indicative of RESTfulness"
My understanding is that "nice URLs" and "RESTfulness" are orthogonal. Difference implementations of the same RESTful interface could have completely different URL formats and they should all be compatible with clients written to the interface specification.
Having said that, best to have nice URLs and RESTfulness.
- CiaranMcNulty 14y agoWell said. It's in some ways quite anti-RESTful for a consuming client to start to try parsing a URL semantically. "URL building" is not something a client should be responsible for, it should be (semi-)blindly using URLs the service has provided for it.
- rdsubhas 14y agoAgreed and well said. Nice URLs do not have to be RESTful, but RESTful URLs have to be nice. Personally, its just OK for me if the entire URL looks like: maps.google.com/whatever-nice-text-describing-location?ll=lat,long If the lat/long is missing, then ask Maps to do a search. If its present, then its just a "nice" URL. Not necessarily RESTful. Edit: Formatting
- bct 14y ago> RESTful URLs have to be nice Not by any meaningful definition of REST.