Skip to content

Priyansusahoo/SpringBoot_Hibernate_crud_API_EndPoints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

SpringBoot_Hibernate_crud_API_EndPoints

API Endpoints for SpringBoot_Hibernate_CRUD with Example:

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"
}
]

addEmployee API :

Request Body : (raw -> JSON)

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

Response Body -> (JSON)

true

getById :

Request Body :

Alt text

Response Body -> (JSON)

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

deleteById :

Request Body :

Alt text

Response Body -> (JSON)

true

updateEmailById :

Request Body :

Alt text

Response Body -> (JSON)

true

updateAddressById :

Request Body :

image

Response Body -> (JSON)

true

About

API Endpoints for SpringBoot_Hibernate_CRUD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published