Spring Boot User CRUD TDD
Gradle based spring boot application which provide APIs to create, read, update and delete the users using test driven development.
Features of the Application
- Create user
- Read user
- Update user
- Delete user
POST /users
Host: localhost:3000
Content-Type: application/json
{
"id": 1,
"name": "ironman",
"age": 21,
}
{
"id": 1,
"name": "ironman",
"age": 21,
}
Get User details by user id
GET /users/{1}
Host: localhost:3000
{
"id": 1,
"name": "ironman",
"age": 21,
}
PUT /users/{1}
Host: localhost:3000
Content-Type: application/json
{
"id": 1,
"name": "ironman",
"age": 29,
}
{
"id": 1,
"name": "ironman",
"age": 29,
}
DELETE /users/{1}
Host: localhost:3000
{
"id": 1,
"name": "ironman",
"age": 21,
}