Run com.in28minutes.rest.webservices.restfulwebservices.RestfulWebServicesApplication as a Java Application.
Hello World
{"message":"Hello World - Changed"}
{"message":"Hello World, in28minutes"}
[
{
"id": 10001,
"username": "in28minutes",
"description": "Learn JPA",
"targetDate": "2019-06-27T06:30:30.696+0000",
"done": false
},
{
"id": 10002,
"username": "in28minutes",
"description": "Learn Data JPA",
"targetDate": "2019-06-27T06:30:30.700+0000",
"done": false
},
{
"id": 10003,
"username": "in28minutes",
"description": "Learn Microservices",
"targetDate": "2019-06-27T06:30:30.701+0000",
"done": false
}
]
{
"id": 10001,
"username": "in28minutes",
"description": "Learn JPA",
"targetDate": "2019-06-27T06:30:30.696+0000",
"done": false
}
- POST to http://localhost:5000/jpa/users/in28minutes/todos with BODY of Request given below
{
"username": "in28minutes",
"description": "Learn to Drive a Car",
"targetDate": "2030-11-09T10:49:23.566+0000",
"done": false
}
- PUT Request to http://localhost:5000/jpa/users/in28minutes/todos/10001 with BODY of Request given below
{
"id": 10001,
"username": "in28minutes",
"description": "Learn to Drive a Car",
"targetDate": "2045-11-09T10:49:23.566+0000",
"done": false
}
- http://localhost:5000/h2-console
- Use
jdbc:h2:mem:testdb
as JDBC URL
version: 0.2
phases:
install:
runtime-versions:
java: openjdk8
commands:
- echo install
pre_build:
commands:
- echo pre_build
build:
commands:
- mvn package
- echo build
post_build:
commands:
- echo post_build
artifacts:
files:
- target/spring-boot-todo-rest-api-h2-aws-codepipeline-0.0.1-SNAPSHOT.jar