Schedule > 8. HTTP & the Fetch API
Week 11: Wed, Oct 30
Readings
Intro to HTTP
- An introduction to HTTP: everything you need to know. Free Code Camp
- Sign up for Postman.
Intro to Fetch & Promises
- Lazaris, Louis (2020). Fetch API Tutorial for Beginners: How to Use Fetch API.
- fetch GET examples.
Note: this example (and subsequent ones) demonstrate both “then” “async/await” techniques. - fetch POST examples.
- fetch PUT examples.
Note: PATCH works the same way as PUT. Recall that PATCH only updates specific attributes of a resource while PUT replaces the entire resource with a new version. - fetch DELETE examples.
Slides
- Lecture 11: Intro to HTTP & Fetch
Activities
- Lecture 11 files: Fetch Examples (Wednesday, 10/30)