Step 2: Create a raw request
-
In the Admin Console, go to .
-
In the Workflows Console, click New Flow.
-
Click Function, and then select HTTP.
-
Choose Raw Request from the HTTP menu.
-
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.
-
Enter the method as GET.
-
Copy the headers into the HTTP Raw Request card as shown below (entered as an Object):
Copy{
"Accept": "application/json",
"Content-Type": "application/json"
} -
Copy the query parameters into the HTTP Raw Request card as shown below (entered as an Object):
Copy{
"type": "Dog",
"page": "2"
} -
Name and save the flow, and then test the card in isolation.
-
Verify that the response headers and body are correct.