MartinsOnuoha / countriesNowAPI

CountriesNow is an Open source API for retrieving geo-information for countries, including their states, cities, population, etc. 🌎
http://countriesnow.space
MIT License
185 stars 59 forks source link

Add image to get currency and country endpoint. #15

Closed Mr-emeka closed 4 years ago

Mr-emeka commented 4 years ago

@MartinsOnuoha

Data to return should return with the image URL. { "error": false, "msg": "countries and currencies retrieved", "data": [ { "name": "Bangladesh", "currency": "BDT", "img": imgurl } ] }

iambenkay commented 4 years ago

Great feature suggestion @Mr-emeka Country unicode flags and SVG flags are already available in the data store. Maybe include both the unicode flag and actual flag image for convenience reasons. @MartinsOnuoha I could get to work on this if you don't mind.

MartinsOnuoha commented 4 years ago

@iambenkay Sure, you can create a separate endpoint for this or update the any of the existing endpoints, also be sure to update the response structure in the API documentation, thanks 🔥

iambenkay commented 4 years ago

@Mr-emeka check out this PR to know if it helps with your use case https://github.com/MartinsOnuoha/countriesAndCitiesAPI/pull/16