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
- Host: GitHub
- URL: https://github.com/priyansusahoo/springboot_hibernate_crud_api_endpoints
- Owner: Priyansusahoo
- License: mit
- Created: 2024-01-08T17:38:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-09T13:45:30.000Z (over 1 year ago)
- Last Synced: 2025-01-08T06:46:05.478Z (9 months ago)
- Topics: api, controller, json
- Homepage: https://github.com/Priyansusahoo/SpringBoot_Hibernate_CRUD
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/getAllEmployeesResponse 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/addEmployeeRequest 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=7Request Body :

Response Body ->
(JSON){
"id": 7,
"firstName": "Priyansu",
"lastName": "Sahoo",
"email": "abc@gmail.com"
}## deleteById :
- (PUT) Request
- URL : http://localhost:9090/myapp/deleteById?id=9Request Body :

Response Body ->
(JSON)
true## updateEmailById :
- (PUT) Request
- URL : http://localhost:9090/myapp/updateEmailById?id=5&email=sddfsadf@gmail.comRequest Body :

Response Body ->
(JSON)
true## updateAddressById :
- (PUT) Request
- URL : http://localhost:9090/myapp/updateEmailById?id=5&email=sddfsadf@gmail.comRequest Body :

Response Body ->
(JSON)
true