Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix order of parameters for /v1/provide-list-of-connected-devices #178

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions server/service/IndividualServicesService.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,14 +586,8 @@ const EmbeddingCausesRequestForListOfDevicesAtMwdi = async function (user, origi

httpRequestHeader = onfAttributeFormatter.modifyJsonObjectKeysToKebabCase(httpRequestHeaderAuth);

//empty body
let body = {
"input":
{}
};

try {
let response = await axios.post(finalUrl, body, {
let response = await axios.post(finalUrl, {}, {
headers: httpRequestHeaderAuth
});

Expand Down Expand Up @@ -763,8 +757,8 @@ exports.provideListOfNetworkElementInterfacesOnPathInGenericRepresentation = asy
console.log("Target MAC Address:", element["target-mac-address"]);

existingItem = result.find(item => item["value"].includes(element["mount-name"]));
if (existingItem!=undefined) {

if (existingItem != undefined) {
existingItem["value"] = existingItem["value"] + ";" + element["target-mac-address"];
} else {
result.push({
Expand All @@ -776,14 +770,14 @@ exports.provideListOfNetworkElementInterfacesOnPathInGenericRepresentation = asy

});


let fullResponse =
{
"consequent-action-list": [],
"response-value-list": result
}

resolve(fullResponse);
resolve(fullResponse);
})
.catch(error => {
console.error(error);
Expand Down
2 changes: 1 addition & 1 deletion spec/MacAddressTableRecorder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
$ref: "#/components/responses/responseForErroredServiceRequests"
callbacks:
? PromptForBequeathingDataCausesRequestForBroadcastingInfoAboutServerReplacement
: url: #[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-protocol]://[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/domain-name or /core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/ip-address/ipv-4-address]:[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-port][/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-op-c-bm-ro-2-0-1-001/layer-protocol=0/operation-client-interface-1-0:operation-client-interface-pac/operation-client-interface-configuration/operation-name]

Check warning on line 220 in spec/MacAddressTableRecorder.yaml

View workflow job for this annotation

GitHub Actions / lintAllTheThings

220:16 [comments] too few spaces before comment

Check warning on line 220 in spec/MacAddressTableRecorder.yaml

View workflow job for this annotation

GitHub Actions / lintAllTheThings

220:17 [comments] missing starting space in comment
post:
parameters:
- $ref: "#/components/parameters/user"
Expand Down Expand Up @@ -340,7 +340,7 @@
default:
$ref: "#/components/responses/responseForErroredServiceRequests"
PromptForBequeathingDataCausesRequestForDeregisteringOfOldRelease:
url: #[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-protocol]://[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/domain-name or /core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/ip-address/ipv-4-address]:[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-port][/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-op-c-bm-ro-2-0-1-002/layer-protocol=0/operation-client-interface-1-0:operation-client-interface-pac/operation-client-interface-configuration/operation-name]

Check warning on line 343 in spec/MacAddressTableRecorder.yaml

View workflow job for this annotation

GitHub Actions / lintAllTheThings

343:16 [comments] too few spaces before comment

Check warning on line 343 in spec/MacAddressTableRecorder.yaml

View workflow job for this annotation

GitHub Actions / lintAllTheThings

343:17 [comments] missing starting space in comment
post:
parameters:
- $ref: "#/components/parameters/user"
Expand Down Expand Up @@ -415,7 +415,7 @@
default:
$ref: "#/components/responses/responseForErroredServiceRequests"
? PromptingNewReleaseForUpdatingServerCausesRequestForBroadcastingInfoAboutBackwardCompatibleUpdateOfOperation
: url: #[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-protocol]://[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/domain-name or /core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/ip-address/ipv-4-address]:[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-ro-2-0-1-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-port][/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-op-c-bm-ro-2-0-1-003/layer-protocol=0/operation-client-interface-1-0:operation-client-interface-pac/operation-client-interface-configuration/operation-name]

Check warning on line 418 in spec/MacAddressTableRecorder.yaml

View workflow job for this annotation

GitHub Actions / lintAllTheThings

418:16 [comments] too few spaces before comment

Check warning on line 418 in spec/MacAddressTableRecorder.yaml

View workflow job for this annotation

GitHub Actions / lintAllTheThings

418:17 [comments] missing starting space in comment
description: >
'This callback belongs to the sequence of actions that have to be done during the bequeath-your-data-and-die process, despite the forwarding gets neither managed nor directly initiated by the /v1/bequeath-your-data-and-die request.
After consuming applications have been redirected to the new release, the new release is triggered (this callback) to request the RegistryOffice for broadcasting information about backward compatible replacements of services.'
Expand Down Expand Up @@ -773,7 +773,7 @@
content:
application/json:
schema:
oneOf:
anyOf:
- description: "bare update of elasticsearch"
type: object
required:
Expand Down Expand Up @@ -932,7 +932,7 @@
$ref: "#/components/responses/responseForErroredServiceRequests"
callbacks:
? PromptForUpdatingMacTableFromDeviceCausesUuidOfMacFdBeingSearchedAndManagementMacAddressBeingReadFromMwdi
: url: #[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-mwdi-1-0-0-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-protocol]://[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-mwdi-1-0-0-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/ip-address/ipv-4-address or /core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-mwdi-1-0-0-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/domain-name]:[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-mwdi-1-0-0-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-port][/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-op-c-is-mwdi-1-0-0-002/layer-protocol=0/operation-client-interface-1-0:operation-client-interface-pac/operation-client-interface-configuration/operation-name]

Check warning on line 935 in spec/MacAddressTableRecorder.yaml

View workflow job for this annotation

GitHub Actions / lintAllTheThings

935:16 [comments] too few spaces before comment

Check warning on line 935 in spec/MacAddressTableRecorder.yaml

View workflow job for this annotation

GitHub Actions / lintAllTheThings

935:17 [comments] missing starting space in comment
get:
parameters:
- $ref: "#/components/parameters/user"
Expand Down Expand Up @@ -1045,7 +1045,7 @@
default:
$ref: "#/components/responses/responseForErroredServiceRequests"
? PromptForUpdatingMacTableFromDeviceCausesMacTableBeingRetrievedFromDevice
: url: #[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-odl-4-0-2-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-protocol]://[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-odl-4-0-2-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/ip-address/ipv-4-address or /core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-odl-4-0-2-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-address/domain-name]:[/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-tcp-c-odl-4-0-2-000/layer-protocol=0/tcp-client-interface-1-0:tcp-client-interface-pac/tcp-client-interface-configuration/remote-port][/core-model-1-4:control-construct/logical-termination-point=matr-1-0-0-op-c-is-odl-4-0-2-000/layer-protocol=0/operation-client-interface-1-0:operation-client-interface-pac/operation-client-interface-configuration/operation-name]

Check warning on line 1048 in spec/MacAddressTableRecorder.yaml

View workflow job for this annotation

GitHub Actions / lintAllTheThings

1048:16 [comments] too few spaces before comment
get:
parameters:
- name: mount-name
Expand Down
Loading