As of now , performing a register-yourself without a request-body is not triggering RO://register-application.
This is because, in the server/controllers/BasicServices.js , a handling is missing to make this service work for both with or without request-body ,
Copy pasting this code from other applications for your reference
module.exports.registerYourself = async function registerYourself(req, res, next, body, user, originator, xCorrelator, traceIndicator, customerJourney) {
let startTime = process.hrtime();
let responseCode = responseCodeEnum.code.NO_CONTENT;
let responseBodyToDocument;
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"];
}
await BasicServices.registerYourself(body, user, xCorrelator, traceIndicator, customerJourney, req.url)
.then(async function (responseBody) {
responseBodyToDocument = responseBody;
let responseHeader = await restResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
restResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await restResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let sentResp = restResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
});
executionAndTraceService.recordServiceRequest(xCorrelator, traceIndicator, user, originator, req.url, responseCode, req.body, responseBodyToDocument);
};
As of now , performing a register-yourself without a request-body is not triggering RO://register-application. This is because, in the server/controllers/BasicServices.js , a handling is missing to make this service work for both with or without request-body ,