Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/shaikrasheed99/springboot-user-crud
- Owner: shaikrasheed99
- Created: 2022-06-23T17:37:59.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-08T17:41:23.000Z (about 2 years ago)
- Last Synced: 2023-03-05T17:06:37.859Z (almost 2 years ago)
- Topics: flyway-migrations, flyway-postgresql, java, postgresql, rest-api, spring, spring-boot, user-management
- Language: Java
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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,
}
```