Master the essentials of API communication! Learn to craft GET, POST, PUT, PATCH, and DELETE requests, decode responses, and manipulate resources through APIs. By course end, you'll confidently interact with any REST API using Dart's http package.
Overview
Syllabus
- Unit 1: Introduction to REST APIs and HTTP Requests
- Interacting with API Using Curl
- Unit 2: Making GET Requests and Handling Responses in Dart
- Performing a GET Request with Dart
- Fetching and Processing To-Do Items with Dart
- Handling 404 Errors in API Requests
- Fetching and Processing API Data with GET Requests
- Unit 3: Introduction to Path and Query Parameters
- Retrieving a Specific To-Do Item with Path Parameters
- Handling Non-Existent API Resources
- Filtering To-Do Items Using Query Parameters
- Refining API Requests with Multiple Query Parameters
- Unit 4: Sending Data with POST Requests
- Crafting JSON Data for POST Requests
- Fixing Bugs in POST Request Code
- Handling Missing Data in POST Requests
- Verifying New Todo Addition with POST and GET Requests
- Crafting a POST Request to Send Data to an API
- Unit 5: Updating and Deleting Resources with PUT, PATCH, and DELETE
- Implementing the PUT Method for API Resource Update
- Partial Update of a Todo Item with PATCH
- Converting PATCH Request to DELETE Request
- Handling HTTP Requests with PUT, PATCH, and DELETE Functions
- Managing Todo List with API Requests