- (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"
}
]
- (POST) Request
- URL : http://localhost:9090/myapp/addEmployee
Request Body : (raw -> JSON)
{
"firstName" : "Priyansu",
"lastName" : "Sahoo",
"email" : "priyansusahoo1@gmail.com"
}
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": "abc@gmail.com"
}
- (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=sddfsadf@gmail.com
Request Body :
Response Body -> (JSON)
true
- (PUT) Request
- URL : http://localhost:9090/myapp/updateEmailById?id=5&email=sddfsadf@gmail.com
Request Body :
Response Body -> (JSON)
true