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
179 stars 55 forks source link

GET /api/v0.1/countries/random returns a random country object #37

Closed ryzbaka closed 3 years ago

ryzbaka commented 4 years ago

This pull request is in response to issue : https://github.com/MartinsOnuoha/countriesNowAPI/issues/36 for returning a random country object.

image

MartinsOnuoha commented 4 years ago

@ryzbaka awesome job! now what's left is the tests and the openApi Docs.

Open Api

For the openApi Documentation, you need to add the new endpoint to the swagger/paths/ folder then add the endpoint and its corresponding path method in the swagger/openApiDocumentation.js file.

Tests

Tests are written with Mocha & Chai.

Let me know if you need any more clarification

ryzbaka commented 4 years ago

@MartinsOnuoha , sure thing; I'll get to it.

ryzbaka commented 4 years ago

@MartinsOnuoha kindly review the changes.