- (GET) Request
- URL : http://localhost:9090/myapp/getAllEmployees
Response Body -> (JSON)
[
{
"id": 2,
"firstName": "Priyansu",
"lastName": "Sahoo",
"email": "[email protected]"
},
{
"id": 3,
"firstName": "Priyansu",
"lastName": "Sahoo",
"email": "[email protected]"
}
]
- (POST) Request
- URL : http://localhost:9090/myapp/addEmployee
Request Body : (raw -> JSON)
{
"firstName" : "Priyansu",
"lastName" : "Sahoo",
"email" : "[email protected]"
}
Response Body -> (JSON)
true
- (GET) Request
- URL : http://localhost:9090/myapp/getById?id=7
Request Body :
Response Body -> (JSON)
{
"id": 7,
"firstName": "Priyansu",
"lastName": "Sahoo",
"email": "[email protected]"
}
- (PUT) Request
- URL : http://localhost:9090/myapp/deleteById?id=9
Request Body :
Response Body -> (JSON)
true
- (PUT) Request
- URL : http://localhost:9090/myapp/updateEmailById?id=5&[email protected]
Request Body :
Response Body -> (JSON)
true
- (PUT) Request
- URL : http://localhost:9090/myapp/updateEmailById?id=5&[email protected]
Request Body :
Response Body -> (JSON)
true