Step 2: Create a raw request

  1. In the Admin Console, go to WorkflowWorkflows Console.

  2. In the Workflows Console, click New Flow.

  3. Click Function, and then select HTTP.

  4. Choose Raw Request from the HTTP menu.

  5. In the HTTP Raw Request card, choose the HTTP PetStore connection that you just created and enter the URL (API endpoint without the query parameters): http://petstore-demo-endpoint.execute-api.com/petstore/pets.

  6. Enter the method as GET.

  7. Copy the headers into the HTTP Raw Request card as shown below (entered as an Object):

    Copy
    {
    "Accept": "application/json",
    "Content-Type": "application/json"
    }
  8. Copy the query parameters into the HTTP Raw Request card as shown below (entered as an Object):

    Copy
    {
    "type": "Dog",
    "page": "2"
    }
  9. Name and save the flow, and then test the card in isolation.

  10. Verify that the response headers and body are correct.

Next steps

Step 3: Populate values dynamically into a Raw Request card