Test REST Adapter Trigger-Based Integrations with Multipart Attachments on the Configure and run page

You can test REST Adapter trigger-based integrations with multipart attachments on the Configure and run page. This section provides high-level use cases for testing the following multipart attachment types.
  • multipart/form-data
  • multipart payload with structured data (for this example, JSON)

Test Multipart/Form-Data

  1. Configure a REST Adapter as a trigger connection and select the following options on the Request page:
    • Request is multipart with payload
    • Multipart request is of type multipart/form-data with HTML form payload
  2. Design the remaining parts of your integration. For this example, the integration includes a REST Adapter trigger connection, notification action, mapper, and return action.
  3. Activate the integration.
  4. Hover over the REST Adapter trigger connection-based integration to run.
  5. Click Actions Actions icon, then select Run.
  6. In the URI Parameters section of the Configure and run page, specify values for the parameters.
  7. In the Headers section, view the header details.
  8. In the Body section, select the attachments file to upload and specify a text description for the email.
  9. Click Run to invoke this REST Adapter-triggered integration.

    The activity stream results are displayed on the right side of the page.

  10. Check your response email for the file attachment you selected and the text description you specified.
    This document describes oracle rest standards

Test a Multipart Payload with JSON Structured Data

  1. Configure a REST Adapter as a trigger connection and select the following options on the Request page:
    • Request is multipart with payload as the multipart attachment processing option.
    • JSON Sample as the request payload format.
    • multipart/mixed or multipart/form-data as the media type of the request body.
  2. Design the remaining parts of your integration. For this example, the integration includes a REST Adapter trigger connection, notification action, mapper, and return action.
  3. Activate the integration.
  4. Hover over the REST Adapter trigger connection-based integration to run.
  5. Click Actions Actions icon, then select Run.
  6. In the URI Parameters section of the Configure and run page, specify values for the parameters.
  7. In the Body section, select the attachments file to upload and specify a text description for the email.
  8. Click Run to invoke this REST Adapter-triggered integration.

    The activity stream results are displayed on the right side of the page.

  9. Check your response email for the file attachment you selected and the text description you specified.
    Oracle rest standards document
The Configure and run page provides a variety of testing features. See Test Integrations from Outside the Integration Canvas.