Skip to content

Latest commit

 

History

History
100 lines (72 loc) · 1.87 KB

README.md

File metadata and controls

100 lines (72 loc) · 1.87 KB

Spring Boot and Hibernate CRUD App using MySQL Database

API Endpoints for SpringBoot_Hibernate_CRUD with Sample INPUT:

1. getAllEmployees API :

Response Body -> (JSON)

[
{
    "id": 2,
    "firstName": "Priyansu",
    "lastName": "Sahoo",
    "email": "priyansusahoo1@gmail.com"
},
{
    "id": 3,
    "firstName": "Priyansu",
    "lastName": "Sahoo",
    "email": "priyansusahoo1@gmail.com"
}
]

2. addEmployee API :

Request Body : (raw -> JSON)

{
"firstName" : "Priyansu",
"lastName" : "Sahoo",
"email" : "priyansusahoo1@gmail.com"
}

Response Body -> (JSON)

true

3. getById :

Request Body :

Alt text

Response Body -> (JSON)

{
"id": 7,
"firstName": "Priyansu",
"lastName": "Sahoo",
"email": "abc@gmail.com"
}

4. deleteById :

Request Body :

Alt text

Response Body -> (JSON)

true

5. updateEmailById :

Request Body :

Alt text

Response Body -> (JSON)

true

6. updateAddressById :

Request Body :

image

Response Body -> (JSON)

true