Gradle based spring boot application which provide APIs to create, read, update and delete the users using test driven development.
- Create user
- Read user
- Update user
- Delete user
- Request
POST /users
Host: localhost:3000
Content-Type: application/json
{
"id": 1,
"name": "ironman",
"age": 21,
}
- Response
{
"id": 1,
"name": "ironman",
"age": 21,
}
- Request
GET /users/{1}
Host: localhost:3000
- Response
{
"id": 1,
"name": "ironman",
"age": 21,
}
- Request
PUT /users/{1}
Host: localhost:3000
Content-Type: application/json
{
"id": 1,
"name": "ironman",
"age": 29,
}
- Response
{
"id": 1,
"name": "ironman",
"age": 29,
}
- Request
DELETE /users/{1}
Host: localhost:3000
- Response
{
"id": 1,
"name": "ironman",
"age": 21,
}