I have resources:
/countries/
/countries/{countryName}/
/countries/{countryName}/cities/
/countries/{countryName}/cities/{cityName}
I want to add the ability to the REST API to get the cities of any country with a specific name (or meeting other criteria, such as population, area, etc). How could I do that (what resource and method should I make)?
I would say make a resource
/cities
And make it POST and pass your query params as JSON doc