The purpose of this class is to introduce to the student:
- What are
APIsand how to interact with them - What is
AJAXand how to apply it (XMLHttpRequest) - How to use libraries (
axios)
FIRST HALF (12.00 - 13.30)
- What are APIs and how to interact with them
Notes:
- Part of an application that can be communicated with from an outside source
- Connect to it using "endpoints"
- Mostly used to request data from some service
Show examples
- What is
AJAXand how to apply it (XMLHttpRequest)
Notes:
- It's a technique, not a technology
AJAXstands for Asynchronous JavaScript and XML- Nowadays we use
JSONinstead ofXML - Fetch data without reloading the page
Do exercise
SECOND HALF (14.00 - 16.00)
- How to use libraries (
axios)
Notes:
- A library is a code solution a developer (or a team) has written to a common problem
- Usually open-source
- Helps to solve a problem within an application
- Read the documentation on how to use it
Do Exercise