Skip to content

Chamaxonline/RestCountriesNext.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

RestCountriesNext.js

Get information about countries via a Next.js API https://rest-countries-next-js-gilt.vercel.app/

API Endpoints

Below are described the REST endpoints available that you can use to search for countries

All

https://rest-countries-next-js-gilt.vercel.app/api/countries

Names List

Get all country names

https://rest-countries-next-js-gilt.vercel.app/api/countries/names
https://rest-countries-next-js-gilt.vercel.app/api/countries/names

Name

Get by country name.

https://rest-countries-next-js-gilt.vercel.app/api/countries/country?countryName={countryname}
https://rest-countries-next-js-gilt.vercel.app/api/countries/country?countryName=canada
https://rest-countries-next-js-gilt.vercel.app/api/countries/country?countryName=denmark

Search by Name

Search by country name. It will load countries which contain search characters

https://rest-countries-next-js-gilt.vercel.app/api/countries/search?name=land
https://rest-countries-next-js-gilt.vercel.app/api/countries/search?name=stan

Capital City List

Get all capital cities of all countries

https://rest-countries-next-js-gilt.vercel.app/api/countries/capitalcities
https://rest-countries-next-js-gilt.vercel.app/api/countries/capitalcities

About

Get information about countries via a Next.js API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published