mirror of
https://github.com/jlengrand/sample-node-api.git
synced 2026-03-10 08:41:23 +00:00
fix copyright, modified readme
Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
This commit is contained in:
@@ -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/`
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Copyright IBM Corporation 2019
|
||||
# Copyright IBM Corporation 2020
|
||||
################################################################################
|
||||
|
||||
. env.sh
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#
|
||||
# SPDX-License-Identifier: EPL-2.0
|
||||
#
|
||||
# Copyright IBM Corporation 2019
|
||||
# Copyright IBM Corporation 2020
|
||||
################################################################################
|
||||
|
||||
. env.sh
|
||||
|
||||
11
bin/start.sh
11
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
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
@@ -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 });
|
||||
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user