Skip to content

Latest commit

 

History

History

restfutapi-and-messaging

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

RESTFul API consumption and AMQP messaging

The following Red Hat Fuse Online integrations illustrate how to publish and subscribe to AMQP messages as well as how to consume RESTful APIs.

  • JSONValidationMicroService : Red Hat Fuse Online integration that listens for JSON payloads from the JSON.VALIDATION.REQ AMQP queue and then calls the Sample JSON Validation RESTful API for validation purposes. Successful validation responses are sent to the JSON.VALIDATION.OK.RESP AMQP queue. Export archive : JSONValidationMicroService-export.zip

    JSONValidationMicroService-integration.png

  • _SampleValidationsPeriodicTrigger : Red Hat Fuse Online integration that sends, periodically (every 5mn), constant JSON payload messages to the JSON.VALIDATION.REQ AMQP queue so the JSONValidationMicroService integration can validate them. Export archive : _SampleValidationsPeriodicTrigger-export.zip

    _SampleValidationsPeriodicTrigger-integration.png

  • _ConsumeJsonValidationRespAMQPQueue : Red Hat Fuse Online integration that consumes AMQP messages from the JSON.VALIDATION.OK.RESP queue and logs them. Export archive : _ConsumeJsonValidationRespAMQPQueue-export.zip

    _ConsumeJsonValidationRespAMQPQueue-integration.png

The following screenshot shows the main Red Hat Fuse Online components involved in this use-case:

  • Red Hat Fuse Online integrations
  • Red Hat Fuse Online connections:
    • Red Hat AMQ 7 Broker AMQP connection
    • Sample JSON Validation API RESTful connection
  • Sample JSON Validation API client connector

restfutapi-and-messaging_components.png

Import and deployment instructions

  1. Import the integration *.zip archives in Fuse 7.7 Online:

    restfutapi-and-messaging_import.png

  2. Update the Red Hat AMQ 7 Broker AMQP connection configuration according to your environment

    RedHatAMQ7BrokerAMQP-connector.png

  3. Update the Sample JSON Validation API connection configuration according to your environment

    SampleJSONValidationAPI-api_connection.png

    as well as the Sample JSON Validation API api client connector

    SampleJSONValidationAPI-api_client_connector.png

  4. Edit and save each integration before publishing them so the new connectors settings can be taken into account.

  5. Once the Fuse 7.7 Online integrations are deployed and running, you should be able to see the AMQP queues that have been automatically created.

    RedHatAMQ7Broker-console.png