Momentum logo
Team 12 Classroom

Getting Data Using APIs with JS and Fetch

Posted on Apr 5th, 2022

Today’s topics

  • Today’s first goal is to complete the customer database.
  • The next task is to prepare to start working with fetch and AJAX tomorrow.
    • Using JSON for data
    • Basics of HTTP requests
    • Make GET requests with Insomnia client
    • Make GET requests using the Fetch API and display response data on a page

✅ Pre-work for before class tomorrow

🎯 Project: Choose Your Own Adventure

Your assignment is to do one of the following assignments. Whichever you choose, it will be due on Friday morning.

🔖 Resources

HTTP

APIs

AJAX, Fetch, & JSON

⭐ EXTRA/TMI

Fetch requests use JavaScript promises to handle responses. Promises are a much bigger topic than we will get into right now, but if you want to know more about what a promise is and how to use it beyond the context of AJAX requests, you can start with the MDN documentation about it.

🦉 Notes

Back to home