CRUD Api Rest build with spring boot, JPA, and H2 database
- Java >= 8
- PostMan
- Clone this repo
git clone https://github.com/Winnd11/api-springboot.git
- run maven
./mvnw.cmd spring-boot:run
the app will run at http://localhost:5500
Get All Users | Get User By Id |
---|---|
/db | /db/'id' |
Insert User |
---|
/db |
Delete User By Id |
---|
/db/'id' |
Update User |
---|
/db |
The POST and PATCH methods must be in row format and use JSON type
{
"name": "dave",
"email": "dave@gmail.com",
"department": {
"id": 2
}
}
This project is licensed under MIT license, read more at docs.github