openBackhaul / OperationKeyManagement

Manages keys required for consuming services between applications
Apache License 2.0
3 stars 7 forks source link

To remove response header parameter BackendTime for failed request #371

Open IswaryaaS opened 2 weeks ago

IswaryaaS commented 2 weeks ago

As per https://github.com/openBackhaul/ApplicationPattern/issues/903. backendTime shall be removed from responseHeader of negative responses.

To achieve the same, a minor change has been made in https://github.com/openBackhaul/ApplicationPattern/pull/1011.

Additionally, in Controllers/BasicServices.js and Controllers/IndividualServices.js file, "-1" shall be used in last placeholder in below line in catch block for all services

let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);

image