Icon

04.1GET Request - Solution

Annotations and comments
  • Learning objective: In this exercise you will demonstrate how to retrieve data from an API with a GET request, and extract the information of interest from the returned JSON object. Workflow description: The component Retrieve Category Data can be configured to select a product category of interest by the user. According the the user selection, a GET request URL is composed and used to retrieve the data of interest from a REST API service. From the returned JSON object, the information of interest is extracted and prepared as a data table. Open the component. You will find the instructions to the exercises in the yellow annotations inside the component.
  • Activity I: Component to select a product category, retrieve the data, and extract the information of interest The component Retrieve Category Data can be configured to select a product category of interest and retrieve the product data of that category. Open the component. Add missing nodes by following the instructions provided inside the component
  • Removing unnecessary columns: Status & Content Type
  • GET request with the URL provided by the flow variable
  • Selecting the fields of interest
  • Asking the user to select a product category
  • Collection to rows of data
  • Converting special characters: Space --> %20 Apostrophe --> %27 Forming URLs for GET requests

Nodes

Extensions

Links