segler-alex / radiobrowser-api-rust

radio-browser API implementation in rust
GNU Affero General Public License v3.0
227 stars 97 forks source link

Add state count in the list countries #166

Closed ArtyIF closed 10 months ago

ArtyIF commented 2 years ago

Currently, to see how many states each country has, one needs to make a request to /states/<country> on each of the countries, because /countries does not return the amount of states. I suggest adding a "statecount" field to the output of /countries so programs could display that in the country list.