Skip to content

Priyansusahoo/SpringBoot_Hibernate_CRUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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