From 3d02271058d2e59a71e49afdd866462f7b6ab1c6 Mon Sep 17 00:00:00 2001 From: Aijana Schumann Date: Wed, 12 Aug 2020 12:28:06 +0200 Subject: Switch odlux from Biermann-RestConf to RFC8040 interface Switched rest-calls in odlux to use RFC8040 interface Issue-ID: CCSDK-2565 Signed-off-by: Aijana Schumann Change-Id: Ia59dd02bc6456bad648083146c0256f204e134d1 --- .../inventoryApp/src/services/inventoryService.ts | 4 ++-- sdnr/wt/odlux/apps/inventoryApp/webpack.config.js | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'sdnr/wt/odlux/apps/inventoryApp') diff --git a/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts b/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts index b6025d4da..d43d2988d 100644 --- a/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts +++ b/sdnr/wt/odlux/apps/inventoryApp/src/services/inventoryService.ts @@ -36,9 +36,9 @@ class InventoryService { } public async getInventoryEntry(id: string): Promise { - const path = `/restconf/operations/data-provider:read-inventory-list`; + const path = `/rests/operations/data-provider:read-inventory-list`; const body = { - "input": { + "data-provider:input": { "filter": [ { property: "id", filtervalue: id }, ], diff --git a/sdnr/wt/odlux/apps/inventoryApp/webpack.config.js b/sdnr/wt/odlux/apps/inventoryApp/webpack.config.js index d81797c1e..66c861389 100644 --- a/sdnr/wt/odlux/apps/inventoryApp/webpack.config.js +++ b/sdnr/wt/odlux/apps/inventoryApp/webpack.config.js @@ -127,33 +127,33 @@ module.exports = (env) => { }, proxy: { "/oauth2/": { - target: "http://localhost:48181", - secure: false - }, - "/yang-schema/": { - target: "http://localhost:48181", + target: "http://10.20.6.29:48181", secure: false }, "/database/": { - target: "http://localhost:48181", + target: "http://10.20.6.29:48181", secure: false }, "/restconf/": { - target: "http://localhost:48181", + target: "http://10.20.6.29:48181", + secure: false + }, + "/rests/": { + target: "http://10.20.6.29:48181", secure: false }, "/help/": { - target: "http://localhost:48181", + target: "http://10.20.6.29:48181", secure: false }, "/tree/": { - target: "http://localhost:48181", + target: "http://10.20.6.29:48181", secure: false }, "/websocket": { - target: "http://localhost:48181", + target: "http://10.20.6.29:48181", ws: true, - changeOrigin: false, + changeOrigin: true, secure: false } } -- cgit 1.2.3-korg