Action to make HTTP request from the flow.

 

  • URL
  • Method
  • Body
  • Header
  • Quer
  • Response-target

HTTP request action is used to allow the flow to make HTTP request.

 

Properties

  • url: Address for the Request to be sent
  • method: Refer to Endpoint for more information
  • body: Value to include in the body
  • header: Value to include in the header
  • query: Query to the server
  • timeout:  Duration to make attempt
  • use-mock-result: Turn on and off the data simulation for the flow of an endpoint
  • mock-result: Message to print after mock run

Output

  • output-location: Location to store the output data

For example

Let’s try making an HTTP request to the Wikipedia API.

Create a new server with an HTTP request that makes the request

URL: https://en.wikipedia.org/w/api.php?action=query&origin=*&format=json&generator=search&gsrnamespace=0&gsrlimit=5&gsrsearch='New_England_Patriots'

Method: Get

Body:

Header:

Query:

Response-target: output | body

You will get a response that you can transform and utilize the data.

5 1 vote
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments