Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2019 FRQ #2 #12

Open
NicholasRamos5 opened this issue Nov 28, 2022 · 0 comments
Open

2019 FRQ #2 #12

NicholasRamos5 opened this issue Nov 28, 2022 · 0 comments

Comments

@NicholasRamos5
Copy link
Owner

NicholasRamos5 commented Nov 28, 2022

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.

Screen Shot 2022-11-27 at 8 53 16 PM

Output:
Screen Shot 2022-11-27 at 8 56 09 PM

Build other attributes into POJO

Screen Shot 2022-11-27 at 9 01 14 PM

Add 1 or more APIs

Methods introduction:

Screen Shot 2022-11-27 at 9 04 42 PM

Screen Shot 2022-11-27 at 9 05 30 PM

toStrings:

Screen Shot 2022-11-27 at 9 06 25 PM

Controller:

Screen Shot 2022-11-27 at 9 08 09 PM

Postman

getBMI
Screen Shot 2022-11-27 at 9 18 37 PM

getStepGoal
Screen Shot 2022-11-27 at 9 19 07 PM

Adding record using Params and GET
Screen Shot 2022-11-27 at 9 11 26 PM

Listing records using GET
Screen Shot 2022-11-27 at 9 12 36 PM

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

Delete record using DELETE
Screen Shot 2022-11-27 at 9 16 40 PM

Correct the BUG in setStats

BEFORE:
Screen Shot 2022-11-27 at 9 25 02 PM

Screen Shot 2022-11-27 at 9 25 24 PM

AFTER:
Screen Shot 2022-11-27 at 9 22 07 PM

Setting stats using Body raw and JSON using POST
Screen Shot 2022-11-27 at 9 17 31 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant