Setting up example

The API to integrate with has the URL structure of https://jsonplaceholder.typicode.com/comments?postId=1. As a reminder, this is the endpoint URL for our HTTP Integration Type. With a URL structure like that, it's clear what is going on and what the return data should be. This request fetches comments for a given postId, which are passed along as a GET argument. Additionally, this modern API returns an array of comment resources with the following format:

{
  "postId": 1,
  "id": 1,
  "name": "id labore ex et quam laborum",
  "email": "Eliseo@gardner.biz",
  "body": "laudantium enim quasi est quidem magnam voluptate ipsam eos\ntempora quo necessitatibus\ndolor quam autem quasi\nreiciendis et nam sapiente accusantium"
}

Assume for ...

Get Serverless Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.