Menu
Back to Discussions

API design, query parameters versus request body for filtering

Torunn Svensson
Torunn Svensson
·7677 views
hey ppl, im wrestling w a common api design choice and wanted to get ur thoughts. when filtering collections of resources, when do u prefer using query params in the url (eg, /users?status=active&role=admin) versus sending a json payload in the request body (eg, post to /users/filter w {
33 comments

Comments

Loading comments...