segler-alex / radiobrowser-api-rust

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

Getting Stations by UUID Array - Not Working #142

Closed Dealman closed 2 years ago

Dealman commented 2 years ago

It works if you provide the API with 1 UUID, multiple when separated by comma will only return an empty JSON array.

Tested URLs: https://fr1.api.radio-browser.info/json/stations/byuuid/beb65192-9301-11e8-a767-52543be04c81,16a73a57-5dba-11e8-b0ce-52543be04c81 https://fr1.api.radio-browser.info/json/stations/byuuids/beb65192-9301-11e8-a767-52543be04c81,16a73a57-5dba-11e8-b0ce-52543be04c81 https://fr1.api.radio-browser.info/json/stations/byuuid/uuids=beb65192-9301-11e8-a767-52543be04c81,16a73a57-5dba-11e8-b0ce-52543be04c81 https://fr1.api.radio-browser.info/json/stations/byuuid&uuids=beb65192-9301-11e8-a767-52543be04c81,16a73a57-5dba-11e8-b0ce-52543be04c81

Dealman commented 2 years ago

Correction, it does work. The documentation confused me. Correct syntax is; https://de1.api.radio-browser.info/json/stations/byuuid?uuids=9642ad8b-0601-11e8-ae97-52543be04c81,16a73a57-5dba-11e8-b0ce-52543be04c81

I had a feeling it was me doing something wrong since everything else has worked flawlessly 😆

terenc3 commented 2 years ago

I made the same mistake. Thanks for providing the solution