Create Action SendHttpRequest to Invoke an External Service

The SendHttpRequest action is used to access external applications.

Contineo developers can configure the following using the SendHttpRequest action:

  1. Context Path

  2. Parameters required by the third-party service

  3. HTTP Method (GET/POST)

  4. HTTPClient


Steps

  1. Navigate to: <Application> → Action → +

  2. Provide a unique component name.

  3. Select "SendHttpRequest" in the Type drop-down.

    Create SendHTTPRequest Component

  4. Open the Properties Panel by clicking on the component name.

  5. Click INPUT.

  6. Select the API URL and enter the context path of the HTTP endpoint.

  7. Select Parameters and enter them in JSON format.

  8. Select HTTP Method (GET / POST / DELETE / PUT). Refer to the documentation provided by the service provider.

  9. Select the HTTPClient component from the dropdown.

    SendHTTPRequest Configuration


Example

Consider the example API URL for weather information

  1. The context path is: data/2.5/weather

  2. The SendHttpRequest component expects parameters in JSON format. HTTP Parameters "&lon=73&appid=25f65f23a4be4dd3227ef3ab59c67280" are converted in JSON format:

    {"lat":35,"lon":139,"appid":"25f65f23a4be4dd3227ef3ab59c67280"}

  3. Optionally, you can add headers such as Content-Type or Authorization in the properties panel.