rohitd3 / rohitfastpages

Rohit De's fastpages for AP CSA 2022-2023
https://rohitd3.github.io/rohitfastpages/
Apache License 2.0
0 stars 0 forks source link

FRQ2 - Classes #11

Open rohitd3 opened 1 year ago

rohitd3 commented 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.

image

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

image

image

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 image

search

http://localhost:8085/api/person/search { "term": "rohit"} image

setGoal

http://localhost:8085/api/person/setGoal { "id":"20", "goal": 5000} image

setStats

{ "id": "20","date": "2022-11-26", "steps": 8000, "calories": 2200}

image