dtsivkovski / csa23

Webpage to keep track of my computer science progress through Jupyter notebooks and blogs.
https://dtsivkovski.github.io/csa23
Apache License 2.0
2 stars 2 forks source link

FRQ 2 - Classes #10

Open dtsivkovski opened 1 year ago

dtsivkovski commented 1 year ago

Using post to add a new person to database

image

Tester

image image Though unconventional, I had to use the GregorianCalendar class to create a new Date object, as I was getting an error using SimpleDateFormat parsing even though I was doing things exactly the same as in the API url code.

Output:

[{"id":20,"email":"johnny@gmail.com","password":"123qwerty!","name":"Johnny","dob":"2005-03-04T08:00:00.000+00:00","stats":{},"statArray":null,"age":17},{"id":21,"email":"johnny@gmail.com","password":"123qwerty!","name":"Johnny","dob":"2005-03-04T08:00:00.000+00:00","stats":{},"statArray":[],"age":17},{"id":19,"email":"tedison@gmail.com","password":"123qwerty!","name":"Theodore","dob":"1900-10-21T08:00:00.000+00:00","stats":{},"statArray":null,"age":122}]

Fixing setStats

image image

YashShah138 commented 1 year ago

Score: 2.8/3 - Yash Shah