Open NicholasRamos5 opened 1 year ago
Person.java
PersonApiController.java
Output:
Methods introduction:
toStrings:
Controller:
getBMI
getStepGoal
Adding record using Params and GET
Listing records using GET
Searching records using Body raw and JSON using POST. This is preferred method to secure transmission
Delete record using DELETE
BEFORE:
AFTER:
Setting stats using Body raw and JSON using POST
Personal Score: 2.7/3 , Teacher Score: 2.7/3
Code
Person.java
PersonApiController.java
Hacks
Build tester method. Test zero argument and all argument constructor.
Output:![Screen Shot 2022-11-27 at 8 56 09 PM](https://user-images.githubusercontent.com/111522637/204197073-a127a410-194b-47c9-af66-d2aac7706340.png)
Build other attributes into POJO
Add 1 or more APIs
Methods introduction:
toStrings:
Controller:
Postman
getBMI![Screen Shot 2022-11-27 at 9 18 37 PM](https://user-images.githubusercontent.com/111522637/204199634-ae21a6f2-5659-411f-89f3-8e7b83b8ce2e.png)
getStepGoal![Screen Shot 2022-11-27 at 9 19 07 PM](https://user-images.githubusercontent.com/111522637/204199680-25a22e5a-621c-4acb-a264-a7e95ba66b60.png)
Adding record using Params and GET![Screen Shot 2022-11-27 at 9 11 26 PM](https://user-images.githubusercontent.com/111522637/204198823-e98507b9-53c1-4e55-b47f-431aeff8d352.png)
Listing records using GET![Screen Shot 2022-11-27 at 9 12 36 PM](https://user-images.githubusercontent.com/111522637/204198927-7b4ec780-a6b3-46a5-8e43-29b4c0935e86.png)
Searching records using Body raw and JSON using POST. This is preferred method to secure transmission![Screen Shot 2022-11-27 at 9 15 01 PM](https://user-images.githubusercontent.com/111522637/204199196-4dd5f81c-fdde-4d3a-95d2-4e4961c3b702.png)
Delete record using DELETE![Screen Shot 2022-11-27 at 9 16 40 PM](https://user-images.githubusercontent.com/111522637/204199421-8252b26e-face-4cfc-a6ce-e5615740ded2.png)
Correct the BUG in setStats
BEFORE:![Screen Shot 2022-11-27 at 9 25 02 PM](https://user-images.githubusercontent.com/111522637/204200405-1d8ddad9-8af3-49b3-8edb-7282f6a5bcb4.png)
AFTER:![Screen Shot 2022-11-27 at 9 22 07 PM](https://user-images.githubusercontent.com/111522637/204200022-4c12021c-5f9e-43eb-ab8b-92b0ae5e4f09.png)
Setting stats using Body raw and JSON using POST![Screen Shot 2022-11-27 at 9 17 31 PM](https://user-images.githubusercontent.com/111522637/204199514-f0a45839-1864-49f3-ba4f-e6e466215a0e.png)