Skip to content

Commit

Permalink
Merge pull request #597 from openBackhaul/develop
Browse files Browse the repository at this point in the history
To merge and create a tag for the v2.1.2
  • Loading branch information
PrathibaJee authored Oct 9, 2024
2 parents 7761961 + c748d0e commit c47baf4
Show file tree
Hide file tree
Showing 12 changed files with 4,934 additions and 8,195 deletions.
1,017 changes: 440 additions & 577 deletions server/api/openapi.yaml

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions server/controllers/BasicServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports.embedYourself = async function embedYourself(req, res, next, body
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -43,7 +43,7 @@ module.exports.endSubscription = async function endSubscription(req, res, next,
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -65,7 +65,7 @@ module.exports.informAboutApplication = async function informAboutApplication(re
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -87,7 +87,7 @@ module.exports.informAboutApplicationInGenericRepresentation = async function in
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -109,7 +109,7 @@ module.exports.informAboutReleaseHistory = async function informAboutReleaseHist
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -131,7 +131,7 @@ module.exports.informAboutReleaseHistoryInGenericRepresentation = async function
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -153,7 +153,7 @@ module.exports.startApplicationInGenericRepresentation = async function startApp
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -175,7 +175,7 @@ module.exports.inquireOamRequestApprovals = async function inquireOamRequestAppr
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -197,7 +197,7 @@ module.exports.listLtpsAndFcs = async function listLtpsAndFcs(req, res, next, us
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -219,7 +219,7 @@ module.exports.redirectOamRequestInformation = async function redirectOamRequest
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -241,7 +241,7 @@ module.exports.redirectServiceRequestInformation = async function redirectServic
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -263,7 +263,7 @@ module.exports.redirectTopologyChangeInformation = async function redirectTopolo
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand Down Expand Up @@ -294,7 +294,7 @@ module.exports.registerYourself = async function registerYourself(req, res, next
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -316,7 +316,7 @@ module.exports.updateClient = async function updateClient(req, res, next, body,
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -338,7 +338,7 @@ module.exports.updateOperationClient = async function updateOperationClient(req,
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -360,7 +360,7 @@ module.exports.updateOperationKey = async function updateOperationKey(req, res,
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -382,7 +382,7 @@ module.exports.inquireBasicAuthRequestApprovals = async function inquireBasicAut
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -404,7 +404,7 @@ module.exports.disposeRemaindersOfDeregisteredApplication = async function dispo
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -426,7 +426,7 @@ module.exports.UpdateClientOfSubsequentRelease = async function UpdateClientOfSu
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand All @@ -448,7 +448,7 @@ module.exports.informAboutPrecedingRelease = async function informAboutPreceding
RestResponseBuilder.buildResponse(res, responseCode, responseBody, responseHeader);
})
.catch(async function (responseBody) {
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url);
let responseHeader = await RestResponseHeader.createResponseHeader(xCorrelator, startTime, req.url, -1);
let sentResp = RestResponseBuilder.buildResponse(res, undefined, responseBody, responseHeader);
responseCode = sentResp.code;
responseBodyToDocument = sentResp.body;
Expand Down
Loading

0 comments on commit c47baf4

Please sign in to comment.