What you'll need

  • JDK 1.8
  • Maven 3+
  • Eclipse | IntelliJ

Stack

  • Spring Boot
  • Spring Data REST
  • Spring Data JPA

Usage

$ cd /maven-multimodule-sample
$ mvn clean install

DEV environment

$ cd /maven-multimodule-sample/sample-rest
$ mvn spring-boot:run -PDevelopment

QA environment

$ cd /maven-multimodule-sample/sample-rest
$ mvn spring-boot:run -PTesting

PRD environment

$ cd /maven-multimodule-sample/sample-rest
$ mvn spring-boot:run -PProduction

Samples

Request

Get a book by id

Response

{
    "id": 1,
    "title": "Java SE 8 for the Really Impatient",
    "description": "Eagerly anticipated by millions of programmers, Java SE 8 is the most important Java update in many years."
}

Request

Create a book

{
    "title": "Java SE 8 for the Really Impatient",
    "description": "Eagerly anticipated by millions of programmers, Java SE 8 is the most important Java update in many years."
}

Response

{
    "id": 1,
    "title": "Java SE 8 for the Really Impatient",
    "description": "Eagerly anticipated by millions of programmers, Java SE 8 is the most important Java update in many years."
}