Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shaikrasheed99/springboot-user-crud

CRUD implementation of Users using Spring Boot.
https://github.com/shaikrasheed99/springboot-user-crud

flyway-migrations flyway-postgresql java postgresql rest-api spring spring-boot user-management

Last synced: about 2 months ago
JSON representation

CRUD implementation of Users using Spring Boot.

Awesome Lists containing this project

README

        

# 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

## APIs

### Create a User

* Request
```
POST /users
Host: localhost:3000
Content-Type: application/json
{
"id": 1,
"name": "ironman",
"age": 21,
}
```
* Response
```
{
"id": 1,
"name": "ironman",
"age": 21,
}
```

### Get User details by user id

* Request
```
GET /users/{1}
Host: localhost:3000
```
* Response
```
{
"id": 1,
"name": "ironman",
"age": 21,
}
```

### Update User details

* Request
```
PUT /users/{1}
Host: localhost:3000
Content-Type: application/json
{
"id": 1,
"name": "ironman",
"age": 29,
}
```
* Response
```
{
"id": 1,
"name": "ironman",
"age": 29,
}
```

### Delete a User by user id

* Request
```
DELETE /users/{1}
Host: localhost:3000
```
* Response
```
{
"id": 1,
"name": "ironman",
"age": 21,
}
```