segler-alex / radiobrowser-api-rust

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

support click count by url instead of uuid #65

Closed prof-milki closed 11 months ago

prof-milki commented 4 years ago

type: feature request priority: low client: streamtuner2

The click counting should be able to recognize an {"url": …} parameter, instead of just handling stationuuids.

E.g., these two should be equivalent:

My app doesn't initially store stationuuids when fetching radio lists. Thus requires a double roundtrip to vote on one station. There should be no need for clients to handle radiobrowser's database-internal identifiers. The API endpoint could easily (and faster) do the lookups itself.


Btw, there's also a minor typo/case mismatch in the /stations/byurl API doc. The parameter should be lowercase url, not URL. The returned value is also somewhat inconsistent. Perhaps it should always return a list, instead of just a hash for single entry results.