Add assessment

This commit is contained in:
Chris Proctor 2024-05-21 00:22:35 -04:00
parent b00517a8b0
commit 91f13c849a
1 changed files with 19 additions and 0 deletions

19
assessment.md Normal file
View File

@ -0,0 +1,19 @@
# Riddles Lab Assessment
Pat,
Everything looks good!
Regarding your reflection on GET and POST requests in e-commerce:
> 1. The "shopping cart" interface on an online store might be a series
> of requests from the user to go to product pages and add items to cart.
> Part of the response would be an update to the shopping cart and on
> something like Amazon, the indicator in the corner telling you how many
> items are currently in your cart. I feel like the product page would
> bet a GET and adding an item to cart would be a POST?
This sounds right. One helpful way of thinking is that GET requests should
not cause any changes, while POST requests should cause some kind of change.
Therefore, it's safe to re-issue the same GET request over and over (e.g.
reloading a webpage) but the same is not true of POST requests.