Open rohitd3 opened 1 year ago
CODE
Build tester method (public static void main) for Person Pojo. Test zero argument and all argument constructor. build toString method to display attributes of the class.
creating user: http://localhost:8085/api/person/post/?email=derohit@gmail.com&password=password&name=Rohit De&dob=01-11-2005&height=67&weight=157
Build other attributes into POJO that where mentioned in project dialog at the beginning of this blog. Add 1 or more APIs. Use Issues to plan and track work
Correcting setStats
search
http://localhost:8085/api/person/search { "term": "rohit"}
setGoal
http://localhost:8085/api/person/setGoal { "id":"20", "goal": 5000}
setStats
{ "id": "20","date": "2022-11-26", "steps": 8000, "calories": 2200}
CODE
Build tester method (public static void main) for Person Pojo. Test zero argument and all argument constructor. build toString method to display attributes of the class.
POSTMAN TESTING
creating user: http://localhost:8085/api/person/post/?email=derohit@gmail.com&password=password&name=Rohit De&dob=01-11-2005&height=67&weight=157
Build other attributes into POJO that where mentioned in project dialog at the beginning of this blog. Add 1 or more APIs. Use Issues to plan and track work
Correcting setStats
search
http://localhost:8085/api/person/search { "term": "rohit"}
setGoal
http://localhost:8085/api/person/setGoal { "id":"20", "goal": 5000}
setStats
{ "id": "20","date": "2022-11-26", "steps": 8000, "calories": 2200}