#loopback-nodered-poc-orchestration-option1-synchronous-api
This POC demonstrate synchronus api orchestration using loopback and node-red
loopback API's : Customer, Account and Iam
-
Input Payload at starting
-
Create Customer payload using Cutomer Outgoing Template.
-
Parse template using Json translator.
-
Call Customer Api.
-
Handle Customer Api's response via Handler 5.1 If api is returning business error, it will be handled in error debug block. 5.2 Otherwise it will pass response to join.
-
Join both input payload and customer api response using Join function. And create a single merged paylaod.
-
Create Account payload from join paylod using Cutomer Outgoing Template.
-
Call Account Api.
-
Handle Account Api's response via Handler 9.1 If api is returning business error, it will be handled in error debug block. 9.2 Otherwise it will pass response to second join.
-
Create Iam payload from join paylod using Iam Outgoing Template.
-
Call Iam Api.
-
Handle Iam Api's response via Handler 12.1 If api is returning business error, it will be handled in error debug block. 12.2 Otherwise it will pass response to second join.
-
Join Account and Iam api's result and pass to Response.
-
catch all will handle all api connection issue like - socket hangup etc.