Re:REST worst practices
by generalk on Friday January 20, 2012 @05:47PM
(#3491569)
No, no.
The point is that REST uses Hypertext as the Engine of Application State. You might have heard of this as HATEOAS.
Ideally, your API is discoverable given the initial URL. If you return IDs, I have to construct URLs based on information I already have. If you return URLs, I just have to make an HTTP request.
The point is that REST uses Hypertext as the Engine of Application State. You might have heard of this as HATEOAS.
Ideally, your API is discoverable given the initial URL. If you return IDs, I have to construct URLs based on information I already have. If you return URLs, I just have to make an HTTP request.