Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shamoda/countries-app-backend
This project is created for the practical test of Pearson Lanka
https://github.com/shamoda/countries-app-backend
Last synced: about 4 hours ago
JSON representation
This project is created for the practical test of Pearson Lanka
- Host: GitHub
- URL: https://github.com/shamoda/countries-app-backend
- Owner: shamoda
- Created: 2021-02-12T11:25:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-14T06:48:21.000Z (almost 4 years ago)
- Last Synced: 2024-11-05T14:51:20.136Z (about 2 months ago)
- Language: Java
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pearson Practical Test
This project was created as the solution for the Practical Test of Pearson Lanka.
#### Exposed REST End-Point (Demo) : https://countries-app-practical-test.herokuapp.com/rest/v2/
#### This back-end was created using Spring Boot framework.
### To run this application in your machine
1. Clone this repository.
2. Open project with your favourite IDE.
3. Install all the maven dependencies.
4. Now you are good to go.### Exposed REST end-points
> - To retrieve all countries send a GET request to:
> - http://localhost:8080/rest/v2/all> - To retrieve a specific country send a GET request with country id to:
> - http://localhost:8080/rest/v2/country/{id}> - To insert new record send a POST request payload to:
> - http://localhost:8080/rest/v2/add> - To update existing record send a PUT request payload to:
> - http://localhost:8080/rest/v2/update> - To delete specific record send a DELETE request with country id to:
> - http://localhost:8080/rest/v2/delete/{id}> - To delete all records send a DELETE request to:
> - http://localhost:8080/rest/v2/deleteall---
#### Use below JSON object to start testing with POST request
```
{
"name": "Japan",
"president": "Yoshihide Suga",
"capital": "Tokyo"
}
```#### Please find the Angular front-end below
Front-end: https://github.com/shamoda/countries-app-frontend---