3.4 Testing Consumer service via postman

This topic provides information on Testing Consumer service via postman.

After the above OBRH configuration is completed, use the below curl command to test that all service consumers are functioning as expected.

Example Testing READ_APPLICATION Consumer service

  1. Generate token and configure <protocol>, <ip>, <port>, <user_id>, <Bearer_Token> first refer to OBO API Testing: Get Token
  2. Use Bearer token in the below curl command.
  3. <application_id> Enter the application number of the data you need to fetch.
  4. <service_consumer> Enter the name of the service consumer e.g. OBDX_TRUNK
  5. <consumer_service> Here we are fetching data from READ_APPLICATION
    curl --location
            '<protocol>://<ip>:<port>/api-gateway/cmc-obrh-services/route/dispatch' 
    \--header 'Content-Type: application/json'
            \--header 'appId: CMNCORE'
            \--header 'userId: <user_id>'
            \--header 'branchCode: <branch_code>'
            \--header 'SERVICE-CONSUMER:
            <service_consumer>' \--header 'SERVICE-CONSUMER-SERVICE:
            <consumer_service>' \--header 'entityId: DEFAULTENTITY'
            \--header 'Authorization: <Bearer Token>'
            \--data '{"applicationId":
            "<application_id>"}'