|
|
|
|
|
by sashthebash
5261 days ago
|
|
I almost completely agree, but a problem I often encounter in REST API design is: how to do searches? Let's say we have an "Event" Resource and it belongs to a "Location" Resource and the Event belongs to "Category" Resources. If you want to provide an endpoint to search events with a GET requests and filter based on Location and Categories (which are identified by URLs) you can end up with really long query strings. /events?location=URL1&categories[]=URL2&categories[]=URL3&categories[]=URL4&... This is not only ugly, it can bring up problems on both clients and servers. Any suggestions on how to handle this? |
|