2 ms·
Ugh. The way you filter a RESTful resource is using the query string. /heroes/superman/powers/detailed is borderline OK: it could conceivably return a 404. Howe
by IgorPartola 15y ago
Ugh. The way you filter a RESTful resource is using the query string. /heroes/superman/powers/detailed is borderline OK: it could conceivably return a 404. However, the filter business is just messy. /heroes/superman/friends?powers=flight is more elegant.
See http://stackoverflow.com/questions/4024271/rest-api-best-practices-where-to-put-parameters http://stackoverflow.com/questions/4024271/rest-api-best-pra...
- arctangent 15y agoI think you're probably right about replacing the "filter" part of the URL with a query string instead.