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

https://github.com/priyansusahoo/springboot_hibernate_crud_api_endpoints

API Endpoints for SpringBoot_Hibernate_CRUD
https://github.com/priyansusahoo/springboot_hibernate_crud_api_endpoints

api controller json

Last synced: 7 months ago
JSON representation

API Endpoints for SpringBoot_Hibernate_CRUD

Awesome Lists containing this project

README

          

# SpringBoot_Hibernate_crud_API_EndPoints
### API Endpoints for SpringBoot_Hibernate_CRUD with Example:

## getAllEmployees API :
- (GET) Request
- URL : http://localhost:9090/myapp/getAllEmployees

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 :
- (POST) Request
- URL : http://localhost:9090/myapp/addEmployee

Request Body :
(raw -> JSON)

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

Response Body ->
(JSON)

true

## getById :
- (GET) Request
- URL : http://localhost:9090/myapp/getById?id=7

Request Body :

![Alt text](ReadmeImages/image.png)

Response Body ->
(JSON)

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

## deleteById :
- (PUT) Request
- URL : http://localhost:9090/myapp/deleteById?id=9

Request Body :

![Alt text](ReadmeImages/image-1.png)

Response Body ->
(JSON)

true

## updateEmailById :
- (PUT) Request
- URL : http://localhost:9090/myapp/updateEmailById?id=5&email=sddfsadf@gmail.com

Request Body :

![Alt text](ReadmeImages/image-2.png)

Response Body ->
(JSON)

true

## updateAddressById :
- (PUT) Request
- URL : http://localhost:9090/myapp/updateEmailById?id=5&email=sddfsadf@gmail.com

Request Body :

![image](https://github.com/Priyansusahoo/SpringBoot_Hibernate_crud_API_EndPoints/assets/78722016/b8853013-c2a1-415c-a110-805742815a43)

Response Body ->
(JSON)

true