diff --git a/README.md b/README.md index 1946556..fa8240c 100644 --- a/README.md +++ b/README.md @@ -34,13 +34,14 @@ scp -r sample-node-api ibmuser@my.mainframe.com:/sample-node- ``` ### 3) Register as External Component -Append to EXTERNAL_COMPONENT /sample-node-api in INSTANCE_DIR/instance.env +Append to EXTERNAL_COMPONENT /sample-node-api/bin in INSTANCE_DIR/instance.env ``` vi INSTANCE_DIR/instance.env - EXTERNAL_COMPONENTS=/sample-node-api + EXTERNAL_COMPONENTS=/sample-node-api/bin ``` -It expects `bin` folder with `start.sh`, `configure.sh` and `validate.sh`, provide lifecycle hooks to configure and start your api component with rest rest of zowe. +It expects folder with `start.sh`, `configure.sh` and `validate.sh`, provides lifecycle hooks to configure and start your api component with rest of zowe. +In our case its bin folder with relevant scripts. ### 4) Access newly deployed webservice behind api/v1 `https://my.mainframe.com:7554/api/v1/sample-node-api/accounts/` diff --git a/bin/configure-2.sh b/bin/configure-2.sh index 1da697b..2061180 100644 --- a/bin/configure-2.sh +++ b/bin/configure-2.sh @@ -7,7 +7,7 @@ # # SPDX-License-Identifier: EPL-2.0 # -# Copyright IBM Corporation 2019 +# Copyright IBM Corporation 2020 ################################################################################ . env.sh diff --git a/bin/configure.sh b/bin/configure.sh index 959f16f..9104092 100644 --- a/bin/configure.sh +++ b/bin/configure.sh @@ -7,7 +7,7 @@ # # SPDX-License-Identifier: EPL-2.0 # -# Copyright IBM Corporation 2019 +# Copyright IBM Corporation 2020 ################################################################################ . env.sh diff --git a/bin/start.sh b/bin/start.sh index 5d4c442..5159868 100644 --- a/bin/start.sh +++ b/bin/start.sh @@ -1,5 +1,16 @@ #!/bin/sh +################################################################################ +# This program and the accompanying materials are made available under the terms of the +# Eclipse Public License v2.0 which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-v20.html +# +# SPDX-License-Identifier: EPL-2.0 +# +# Copyright IBM Corporation 2020 +################################################################################ + + # find node bin NODE_BIN=${NODE_HOME}/bin/node diff --git a/server/app.js b/server/app.js index 86d8e64..0bdcdda 100644 --- a/server/app.js +++ b/server/app.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const express = require('express'); const http = require('http'); const https = require('https'); diff --git a/server/cli/accounts.route.js b/server/cli/accounts.route.js index f05862b..8084b48 100644 --- a/server/cli/accounts.route.js +++ b/server/cli/accounts.route.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const express = require('express'); const router = express.Router({ mergeParams: true }); diff --git a/server/cli/accountsCars.route.js b/server/cli/accountsCars.route.js index 34f1239..13c085e 100644 --- a/server/cli/accountsCars.route.js +++ b/server/cli/accountsCars.route.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const express = require('express'); const router = express.Router({ mergeParams: true }); diff --git a/server/cli/cars.route.js b/server/cli/cars.route.js index db55308..ac3af9c 100644 --- a/server/cli/cars.route.js +++ b/server/cli/cars.route.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const express = require('express'); const router = express.Router({ mergeParams: true }); diff --git a/server/cli/index.route.js b/server/cli/index.route.js index f3b9dd9..964b3dd 100644 --- a/server/cli/index.route.js +++ b/server/cli/index.route.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const express = require('express'); const cars = require('./cars.route'); const accounts = require('./accounts.route'); diff --git a/server/controllers/accounts.controller.js b/server/controllers/accounts.controller.js index 06285fe..dccd35f 100644 --- a/server/controllers/accounts.controller.js +++ b/server/controllers/accounts.controller.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const accountsService = require('../services/accounts.service'); const get = function(req, res){ diff --git a/server/controllers/accountsCars.controller.js b/server/controllers/accountsCars.controller.js index 4f1c695..f5343b7 100644 --- a/server/controllers/accountsCars.controller.js +++ b/server/controllers/accountsCars.controller.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const accountsCarsService = require('../services/accountsCars.service'); const get = function(req, res){ diff --git a/server/controllers/cars.controller.js b/server/controllers/cars.controller.js index 897796e..9ac9e7b 100644 --- a/server/controllers/cars.controller.js +++ b/server/controllers/cars.controller.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const carsService = require('../services/cars.service'); const get = function(req, res){ diff --git a/server/routes/accounts.route.js b/server/routes/accounts.route.js index f05862b..8084b48 100644 --- a/server/routes/accounts.route.js +++ b/server/routes/accounts.route.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const express = require('express'); const router = express.Router({ mergeParams: true }); diff --git a/server/routes/accountsCars.route.js b/server/routes/accountsCars.route.js index 1385064..ad2a305 100644 --- a/server/routes/accountsCars.route.js +++ b/server/routes/accountsCars.route.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const express = require('express'); const router = express.Router({ mergeParams: true }); diff --git a/server/routes/cars.route.js b/server/routes/cars.route.js index db55308..ac3af9c 100644 --- a/server/routes/cars.route.js +++ b/server/routes/cars.route.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const express = require('express'); const router = express.Router({ mergeParams: true }); diff --git a/server/routes/index.route.js b/server/routes/index.route.js index f3b9dd9..964b3dd 100644 --- a/server/routes/index.route.js +++ b/server/routes/index.route.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const express = require('express'); const cars = require('./cars.route'); const accounts = require('./accounts.route'); diff --git a/server/services/accounts.service.js b/server/services/accounts.service.js index f7063eb..c04bf3f 100644 --- a/server/services/accounts.service.js +++ b/server/services/accounts.service.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const data = require('../../data'); const get = function(_id){ diff --git a/server/services/accountsCars.service.js b/server/services/accountsCars.service.js index 38790d6..2a296dc 100644 --- a/server/services/accountsCars.service.js +++ b/server/services/accountsCars.service.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const data = require('../../data'); const carsService = require('./cars.service'); diff --git a/server/services/cars.service.js b/server/services/cars.service.js index 1d1e8c4..04ef301 100644 --- a/server/services/cars.service.js +++ b/server/services/cars.service.js @@ -1,3 +1,13 @@ +/* + This program and the accompanying materials are + made available under the terms of the Eclipse Public License v2.0 which accompanies + this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html + + SPDX-License-Identifier: EPL-2.0 + + Copyright IBM Corporation 2020 +*/ + const data = require('../../data'); const get = function(_id){