In this course, you will learn how to interact with APIs using JavaScript. By the end of this course, you’ll understand how to make GET, POST, PUT, PATCH, and DELETE requests to an API, interpret API responses, and perform basic operations like creating, reading, updating, and deleting resources.
Overview
Syllabus
- Unit 1: Introduction to REST APIs and HTTP Requests with JavaScript
- Fetching API Documentation with Fetch API
- Unit 2: Interacting with APIs Using JavaScript: GET Requests and Error Handling
- Performing a Basic GET Request in JavaScript
- Interacting with APIs Using GET Requests in JavaScript
- Handling 404 Errors in JavaScript Fetch Requests
- Creating a JavaScript Script to Fetch and Process API Data
- Unit 3: Introduction to Path and Query Parameters with JavaScript
- Retrieving a To-Do Item with Path Parameters
- Change the ID to Find a Non-Existent To-Do Item
- Using Query Parameters to Filter Incomplete To-Do Items
- Refining and Filtering Todos with Query Parameters
- Unit 4: Sending Data with POST Requests Using JavaScript
- Crafting JSON Data and Sending POST Requests with JavaScript
- Fix the Bugs in JavaScript POST Request
- Handling Missing Data in POST Requests
- Verify Addition and Retrieval of New Todo Item via API
- Crafting a POST Request with Fetch API
- Unit 5: Updating and Deleting Resources with PUT, PATCH, and DELETE in JavaScript
- Implementing the PUT method in JavaScript to update a todo item
- Changing PUT to PATCH for Partial Todo Item Update
- Changing PATCH Request to DELETE Request for Task Removal
- Handling HTTP Requests with PUT PATCH and DELETE in JavaScript
- Managing Todo List with API Requests in JavaScript