$env:PATH += ";C:\Users\username.jdks\openjdk-25\bin"
java -jar zipkin-server-3.5.1-exec.jar
-
POST : http://localhost:8080/users/save
{ "name": "balram", "emailId": "balramc@example.com", "mobile" : "125412541254", "location" : "Hyderabad", "departmentId": 1 } -
CMD
-
curl -X POST http://localhost:8080/users/save ^ -H "Content-Type: application/json" ^ -d "{"name":"balram","emailId":"balramc@example.com","mobile":"125412541254","location":"Hyderabad","departmentId":1}"
{ "name": "IT", "location" : "Hyderabad" } -
CMD
-
curl -X POST http://localhost:8080/departments/save ^ -H "Content-Type: application/json" ^ -d "{ "name": "IT", "location": "Hyderabad" }"```
-
Getdeptanduserbyuserid : GET : http://localhost:8080/users/department/1
{
"user": {
"id": 1,
"name": "balram",
"emailId": "balramc@example.com",
"mobile": "125412541254",
"location": "Hyderabad",
"departmentId": 1
},
"department": {
"id": 1,
"name": "IT",
"location": "Hyderabad"
}
}