Skip to content

API World country Released

Latest
Compare
Choose a tag to compare
@geoffreylgv geoffreylgv released this 09 Apr 20:30

### The API provides the following functionalities:

Get a list of all countries:

Request: GET /countries

Response: A JSON array containing all the countries in the system, with their respective ID, code, name (in French and English), alpha2 and alpha3 codes.

Get a specific country by ID:

Request: GET /countries/{id}

Response: A JSON object containing the details of the country with the specified ID, including its code, name (in French and English), alpha2 and alpha3 codes.

Get a list of countries by name:

Request: GET /countries?name={name}

Response: A JSON array containing all the countries whose name (in French or English) contains the specified search term, along with their respective ID, code, name (in French and English), alpha2 and alpha3 codes.

Search for countries using any attribute:

Request: GET /countries/search?q={query}

Response: A JSON array containing all the countries who's any attribute contains the specified search term, along with their respective ID, code, name (in French and English), alpha2 and alpha3 codes.
The API is implemented using Spring Boot and utilizes the JPA/Hibernate framework for data persistence. The data model is represented by the "Country" entity, which is mapped to a database table called "COUNTRIES".

Full Changelog: https://github.com/geoffreylgv/API-world_countries/commits/v1.0.0