Create a Connection to the API

Similarly, now create a connection to the APIXU weather API. This connection will be used to invoke the weather API to get the weather information.
  1. On the Connections page, click Create.
  2. Select the REST adapter.

    In the Create Connection - Select Adapter dialog, for the REST adapter, click Select. If the REST adapter is not listed, type rest in the Search field, then click Search Search icon.

  3. In the Create New Connection dialog, enter information about the connection.
    1. In the Name field, enter APIXUWeather. Notice that the name is automatically added in capital letters to the Identifier field.

    2. In the Role field, retain the default selection Trigger and Invoke.

      With the role as Trigger and Invoke, you will be able to use your connection either as an invoke connection or a trigger connection in the integration.

    3. In the Description field, enter Connection to retrieve the weather information from APIXU weather API.

    4. Click Create.

      Description of new_connection_dialog.png follows
      Description of the illustration new_connection_dialog.png

      The details page for your APIXUWeather connection is displayed. You’re now ready to configure the connection details.

  4. In the Connection Administrator section, enter your email address to receive email notifications related to the connection.
  5. Configure connection properties.
    1. Click Configure Connectivity.

      The Connection Properties dialog is displayed.

    2. From the Connection Type drop-down list, select REST API Base URL.

    3. In the Connection URL field, enter the URL of the API: http://api.apixu.com/v1.

    4. Click OK.

  6. Configure connection security.
    1. Click Configure Security.

      The Credentials dialog is displayed.

    2. From the Security Policy drop-down list, select No Security Policy. The API manages the security for the connection.

    3. Click OK.

  7. Click Test to check the connection.

    If the connection is working fine, then the following message is displayed: Connection APIXUWeather was tested successfully.

  8. Click Save.
  9. Click Close.

    The APIXUWeather connection is now listed on the Connections page. You will use this connection as the invoke connection in your integration.

    Description of new_connection_api.png follows
    Description of the illustration new_connection_api.png