18.5 Template evaluation API Specification

This topic provide information about the Template evaluation API Specification.

Template evaluation endpoint will return the evaluated output of transformation template.

End-user can validate the template based on the returned output.

Template evaluation endpoint signature -
  • Method: POST
  • Path : /template/evaluate
  • Headers:
    • appId : CMNCORE
    • entityId : DEFAULTENTITY
    • userId : <user id>
    • branchCode : <branch code>
    • Authorization : Bearer <Token>
    • SERVICE-CONSUMER : <name of service consumer>
    • SERVICE-CONSUMER-SERVICE : <name of service consumer service>
    • SERVICE-TRANSFORMATION : <name of service transformation>
  • Query Parameters:
    • transformationType : REQUEST / RESPONSE / MOCK_RESPONSE
    • Note:

      Default value is REQUEST if not specified.
  • Request Body:
    • Any valid JSON / XML payload which shall act as input to the transformation template in request transformer.
  • Response Body:
    
    {  
     "data": {}  
     "messages": {} 
    }