Skip to content

This application is country rest api that show details of a country (name, capital, region, subregion, area).

Notifications You must be signed in to change notification settings

claivemonteza/country-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌎 Country API

🛠️ Technologies   |    🌐 API   |    🚀 Demo

This project is a country restful api which contains 7 endpoints that allows for :

  • Creating new countires
  • Updating existing countries
  • Deleting existing countries
  • Fetching country by ID
  • Fetching country by name
  • Viewing a sorted list of all countries
  • Viewing a list of all countries
image

Technologies

  • Spring Boot
  • Maven
  • Java

API

The API base URL is https://country-api-restful.herokuapp.com/ and can be used to access the following endpoints :

Add Country (POST)

  • endpoint -/restcountries/v1/countries/save

Update Country (PUT)

  • endpoint -/restcountries/v1/countries/update/{id}

Delete Country (DELETE)

  • endpoint -/restcountries/v1/countries/delete/{id}

Fetch Country By Id (GET)

  • endpoint - /restcountries/v1/countries

Fetch Country By Name (GET)

  • endpoint -/restcountries/v1/countries/find/{name}

Sorted Countries By Properties (GET)

  • endpoint -/restcountries/v1/countries/sortedBy/{property}

All Countries (GET)

  • endpoint -/restcountries/v1/countries

TEST API

https://country-api-restful.herokuapp.com/swagger-ui/swagger-ui/index.html

Demo

https://restcountries-a2ea5.firebaseapp.com/

About

This application is country rest api that show details of a country (name, capital, region, subregion, area).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages