In this course, you will learn how to interact with APIs using Ruby. 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
- Fetching API Data with Curl
- Unit 2: Making GET Requests and Handling Responses
- Automate API Requests with Ruby
- Perfecting API Data Retrieval
- Handling 404 Errors in HTTP Responses
- Handling GET Requests Like a Pro
- Unit 3: Working with Path and Query Parameters
- Fetching To-Do with Path Parameters
- Understanding Error Responses for Non-existent To-Do Items
- Filter To-Do Items with Queries
- Refine Todo List with Multiple Query Parameters
- Unit 4: Sending Data with POST Requests
- Craft Your JSON To-Do Data
- Fix the POST Request Bugs
- Investigating API Response to Missing Fields in POST Requests
- Verify and Retrieve Newly Added To-Do Item
- Mastering POST Requests with Python
- Unit 5: Updating and Deleting Resources with PUT, PATCH, and DELETE
- Updating Resources with PUT
- Switch from PUT to PATCH
- Switching from PATCH to DELETE
- Mastering HTTP Requests in Ruby
- Master API Requests with Ruby