Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

CodeSignal

Basics of HTTP Requests with Java

via CodeSignal

Overview

In this course, you will learn how to interact with APIs using Java. 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.

Syllabus

  • Unit 1: Introduction to REST APIs and HTTP Requests
    • Fetching API Data with Curl
  • Unit 2: Making GET Requests and Handling Responses in Java Using HttpClient and Gson
    • Performing a GET Request with HttpClient in Java
    • Fetching and Processing To-Do Items with Java's HttpClient and Gson
    • Intentionally Triggering and Handling 404 Errors in Java HttpClient
    • Performing GET Requests with HttpClient in Java
  • Unit 3: Understanding Path and Query Parameters in Java Using HttpClient and Gson
    • Retrieve Todo Item Using GET Request with Path Parameters
    • Modify GET request to simulate a 404 error by changing the item ID
    • Filter To-Do Items Using Query Parameters in Java
    • Filter Todos by Completion Status and Title
  • Unit 4: Sending Data with POST Requests in Java Using HttpClient and Gson
    • Crafting JSON Data and Sending POST Requests in Java
    • Identify and Fix HTTP API Request Bugs in Java
    • Exploring API Error Handling with Missing Data in POST Requests
    • Verify Addition of New To-Do Item Using Java HttpClient
    • Crafting a POST Request to an API in Java
  • Unit 5: Updating and Deleting Resources in RESTful APIs Using Java HttpClient and Gson
    • Implementing PUT Method in Java to Update a Todo Item
    • Partial Update of Todo Item Using PATCH in Java
    • Change PATCH Request to DELETE Request in Java
    • Handling HTTP Requests in Java: PUT, PATCH, DELETE
    • Managing Todo List with API Requests

Reviews

Start your review of Basics of HTTP Requests with Java

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.