Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/wiirios/api-springboot

an api built with spring-boot, JPA and H2 database
https://github.com/wiirios/api-springboot

database java spring-boot

Last synced: about 1 month ago
JSON representation

an api built with spring-boot, JPA and H2 database

Awesome Lists containing this project

README

        

# SpringBoot Api
CRUD Api Rest build with spring boot, JPA, and H2 database

## Intalation

- Java >= 8
- PostMan

## Getting Started
1. Clone this repo
```git
git clone https://github.com/Winnd11/api-springboot.git
```

2. run maven
```git
./mvnw.cmd spring-boot:run
```

the app will run at http://localhost:5500

---

### Get Methods

| Get All Users | Get User By Id |
| -- | -- |
| /db | /db/'id' |

---

### Post Method

| Insert User |
| -- |
| /db |

---

### Delete Method

| Delete User By Id |
| -- |
| /db/'id' |

---

### Patch Method

| Update User |
| -- |
| /db |

---

The POST and PATCH methods must be in row format and use JSON type

```json
{
"name": "dave",
"email": "[email protected]",
"department": {
"id": 2
}
}

```

## MIT License
This project is licensed under MIT license, read more at docs.github