added screenshot after registeration, and new build folder

Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
This commit is contained in:
Nakul Manchanda
2020-07-25 00:32:46 -04:00
parent 03b21e0c91
commit 42479d2e62
7 changed files with 22 additions and 6 deletions

View File

@@ -84,4 +84,14 @@ where `GATEWAY_PORT` is configured in $INSTANCE_DIR/instance.env
Verify by accessing following:
`https://my.mainframe.com:7554/api/v1/sample-node-api/accounts/`
`https://my.mainframe.com:7554/api/v1/sample-node-api/accounts/1/`
`https://my.mainframe.com:7554/api/v1/sample-node-api/accounts/1/cars/`
`https://my.mainframe.com:7554/api/v1/sample-node-api/accounts/1/cars/`
### 5) Registered With API Catalog
**API Catalog**
![APICatalog_Dashboard](./screenshots/APICatalog_Dashboard.png)
![ApiCatalog_SampleNodeApi_SwaggerDoc](./screenshots/ApiCatalog_SampleNodeApi_SwaggerDoc.png)
**Discovery Service Dashboard**
![DiscoveryService_Dashboard](./screenshots/DiscoveryService_Dashboard.png)

BIN
build/sample-node-api.zip Normal file

Binary file not shown.

View File

@@ -5,7 +5,7 @@ services:
description: Sample Node API
catalogUiTileId: sample-node-api
instanceBaseUrls:
- https://mymainframe.ibm.com:18000/
- http://mymainframe.ibm.com:18000/
homePageRelativeUrl: # Home page is at the same URL
routedServices:
- gatewayUrl: api/v1 # [api/ui/ws]/v{majorVersion}
@@ -14,8 +14,8 @@ services:
- apiId: com.ibm.sample-node-api
gatewayUrl: api/v1
version: 1.0.0
swaggerUrl: https://mymainframe.ibm.com:18000/api-docs
documentationUrl: https://mymainframe.ibm.com:18000/api-docs-ui
swaggerUrl: http://mymainframe.ibm.com:18000/api-docs
documentationUrl: http://mymainframe.ibm.com:18000/api-docs-ui
catalogUiTiles:
sample-node-api:

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

View File

@@ -1,10 +1,16 @@
## start locally
node server/app.js --service sample-node-api --port 8080 --key sslcert/server.key --cert sslcert/server.cert -v
cd ~/zowe/extenders/sample-node-api
## start on z/os uss
KEYSTORE_DIRECTORY=/u/nakul/zowe/keystore
KEYSTORE_DIRECTORY=~/zowe/keystore
KEYSTORE_ALIAS=localhost
KEYSTORE_PREFIX="${KEYSTORE_DIRECTORY}/${KEYSTORE_ALIAS}/${KEYSTORE_ALIAS}.keystore"
KEYSTORE_KEY=${KEYSTORE_PREFIX}.key
KEYSTORE_CERTIFICATE=${KEYSTORE_PREFIX}.cer-ebcdic
node server/app.js --service sample-node-api --port 19000 --key ${KEYSTORE_KEY} --cert ${KEYSTORE_CERTIFICATE} -v
node server/app.js --service sample-node-api --port 18000 --key ${KEYSTORE_KEY} --cert ${KEYSTORE_CERTIFICATE} -v
# register with API ML layer
cd ~/zowe/extenders/sample-node-api
iconv -f IBM-1047 -t IBM-850 sample-node-api.http.yml > bin/sample-node-api-http.yml
iconv -f IBM-1047 -t IBM-850 sample-node-api.http.yml > ~/zowe/instance/workspace/api-mediation/api-defs/sample-node-api.yml