fix copyright, modified readme

Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
This commit is contained in:
Nakul Manchanda
2020-02-06 18:14:07 -05:00
parent eb22d09547
commit c353f834a2
19 changed files with 167 additions and 5 deletions

View File

@@ -34,13 +34,14 @@ scp -r sample-node-api ibmuser@my.mainframe.com:</usr/lpp/extender>/sample-node-
```
### 3) Register as External Component
Append to EXTERNAL_COMPONENT </usr/lpp/extender>/sample-node-api in INSTANCE_DIR/instance.env
Append to EXTERNAL_COMPONENT </usr/lpp/extender>/sample-node-api/bin in INSTANCE_DIR/instance.env
```
vi INSTANCE_DIR/instance.env
EXTERNAL_COMPONENTS=</usr/lpp/extender>/sample-node-api
EXTERNAL_COMPONENTS=</usr/lpp/extender>/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/`

View File

@@ -7,7 +7,7 @@
#
# SPDX-License-Identifier: EPL-2.0
#
# Copyright IBM Corporation 2019
# Copyright IBM Corporation 2020
################################################################################
. env.sh

View File

@@ -7,7 +7,7 @@
#
# SPDX-License-Identifier: EPL-2.0
#
# Copyright IBM Corporation 2019
# Copyright IBM Corporation 2020
################################################################################
. env.sh

View File

@@ -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

View File

@@ -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');

View File

@@ -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 });

View File

@@ -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 });

View File

@@ -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 });

View File

@@ -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');

View File

@@ -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){

View File

@@ -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){

View File

@@ -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){

View File

@@ -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 });

View File

@@ -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 });

View File

@@ -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 });

View File

@@ -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');

View File

@@ -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){

View File

@@ -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');

View File

@@ -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){