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: about 1 month 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 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T13:45:30.000Z (over 2 years ago)
- Last Synced: 2025-02-25T16:43:36.076Z (over 1 year 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/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 :

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 :

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

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

Response Body ->
(JSON)
true