openBackhaul / RegistryOffice

Apache License 2.0
2 stars 8 forks source link

/v1/register-yourself service RequestHeaders require changes when RequestBody is empty #464

Closed PrathibaJee closed 1 year ago

PrathibaJee commented 1 year ago

In the basic service , in the register-yourself service , when the incoming request comes with no requestBody , the following adjustments shall be made in the controller,

 if (Object.keys(req.body).length === 0) {
      body = req.body;
      user = req.headers["user"];
      originator = req.headers["originator"];
      xCorrelator = req.headers["x-correlator"];
      traceIndicator = req.headers["trace-indicator"];
      customerJourney = req.headers["customer-journey"]; 
    }

Priority:High; AffectedFlow:Registration/register-yourself;