Skip to content

Files

Latest commit

37af4b3 · Oct 22, 2024

History

History
73 lines (48 loc) · 1004 Bytes

README.md

File metadata and controls

73 lines (48 loc) · 1004 Bytes

SpringBoot Api

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

Intalation

  • Java >= 8
  • PostMan

Getting Started

  1. Clone this repo
git clone https://github.com/Winnd11/api-springboot.git
  1. run maven
./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

{
  "name": "dave",
  "email": "dave@gmail.com",
  "department": {
    "id": 2
  }
}

MIT License

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