Day 10 - Fetching data asynchronously
Housekeeping
- Install: Postman - A browser for working with APIs
- Individual Project
- Weight: 15%
- Due: Thursday, Nov 3rd @ 11:59pm
1. Spoiler Demos - Objects
2. HTTP and REST
fetch()
and Asynchronous JS
3.
Demo: Fetching JSON data
- Tool: JSON Placeholder
- Reference: List of Public APIs
- Gist:
fetch()
- Asynchronous data withasync
/await
fetch()
practice
Activity: - Try using
fetch()
to retrieve placeholder data from JSON Placeholder, such as:- GET /photos
- returns an array
- GET /photos/8
- returns a single object
- GET /todos
- returns an array
- GET /todos/5
- returns a single object
- GET /photos
- Try using
fetch()
to retrieve data from one of these Practice APIs
Prep
Asynchronous Javascript
- Reading List:
- Watch list
- Async & Await by Programming with Mosh