Simple REST API Spring Boot Application
##Overall:
This Application demonstrates how REST API works using Database Connectivity (Spring Data)
Unit Tests are included.
#Project contents:
- Spring Boot - Base of application that maintain application runtime
- Spring Data - Module that allows to persist (save objects) to database (HSQLDB in this scope)
- HSQLDB Database - Database that performs serialization/deserialization during in-memory execution
#Project requirements:
- Java 8 installed
- Maven 3.0 (3.9 recomended)
- Any IDE (optional)
#How to execute application
- Clone project (green button "Clone or Download")
- Extract to location by your will (e.g Desktop)
- Open terminal and move to location where project located
- run
mvn spring-boot:run
- open browser and go here (http://localhost:8080/api/greetings) to see final result
Note: If everything done correctly, then the line with 2 id's will be return by service
Example: [{"id":1,"name":"Hello World!"},{"id":2,"name":"Hola Mundo!"}]
#How to test application Two options:
- Run jUnit Tests using IDE (*path to project*\src\main\test\com\reborne\light)
- Using Postman (Download here)