Skip to content

reborne/GreetingLightRest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

GreetingLightRest

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:

  1. Spring Boot - Base of application that maintain application runtime
  2. Spring Data - Module that allows to persist (save objects) to database (HSQLDB in this scope)
  3. HSQLDB Database - Database that performs serialization/deserialization during in-memory execution

#Project requirements:

  1. Java 8 installed
  2. Maven 3.0 (3.9 recomended)
  3. Any IDE (optional)

#How to execute application

  1. Clone project (green button "Clone or Download")
  2. Extract to location by your will (e.g Desktop)
  3. Open terminal and move to location where project located
  4. run mvn spring-boot:run
  5. 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:

  1. Run jUnit Tests using IDE (*path to project*\src\main\test\com\reborne\light)
  2. Using Postman (Download here)

About

Simple REST API Spring Boot Application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages