wavy / wavyfm-docs

wavy.fm developer documentation
https://wavy.fm/developers
Other
7 stars 1 forks source link

Include country name in profile info #25

Open aramperes opened 3 years ago

aramperes commented 3 years ago

Use-Case Description

Right now, we return country as a 2-3 character long string. Most country codes use 2 characters, but others don't have an official assigned code so they use the 3-character standard.

Semantics

It would be easier for developers to display country information if the name of the country was already expanded, possibly as a second field so the code can still be used.

"country": "CA",
"country_name": "Canada",

Or if we can give host an endpoint for the flag as well, maybe

"country": {
  "code": "CA",
  "name": "Canada",
  "flag": "https://wavy.fm/api/internal/flag/CA.png"
}