I've seen some questions like this, but they're from a few years ago, and I wanted to know if there's a better standard for this these days.
Let's say my API looks like this:
/api/people ?age=21 &name=\w* &country=Something &state=Someplace &city=Somewhere &language=English &includeRelatives=True|False &includePersonalDetails=True|False &includePersonalPreferences=True|False &includeTravelDetails=True|False &includeOtherStuff=True|False And so on. This just doesn't look nice to me.
Others have recommended this approach (for the "include*" parameters)
&includes=relatives,personaldetails,personalpreferences,traveldetails,otherstuff So clients can opt-in to what they want to include in one parameter.
With all of this said, assuming the list of query parameters is actually longer than this, what is a good pattern/practice for a proper RESTful API?
/api/language/en-us/people, and/api/country/uk/people, etc. well, true, this might not be as flexible as your query string approach, but do you need this flexibility?