diff --git a/README.md b/README.md index d9fca73..61eb250 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/build/sample-node-api.zip b/build/sample-node-api.zip new file mode 100644 index 0000000..5b0bd87 Binary files /dev/null and b/build/sample-node-api.zip differ diff --git a/sample-node-api.yml b/sample-node-api.yml index 079e16b..9d0af3c 100644 --- a/sample-node-api.yml +++ b/sample-node-api.yml @@ -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: diff --git a/screenshots/APICatalog_Dashboard.png b/screenshots/APICatalog_Dashboard.png new file mode 100644 index 0000000..8a71037 Binary files /dev/null and b/screenshots/APICatalog_Dashboard.png differ diff --git a/screenshots/ApiCatalog_SampleNodeApi_SwaggerDoc.png b/screenshots/ApiCatalog_SampleNodeApi_SwaggerDoc.png new file mode 100644 index 0000000..b42476d Binary files /dev/null and b/screenshots/ApiCatalog_SampleNodeApi_SwaggerDoc.png differ diff --git a/screenshots/DiscoveryService_Dashboard.png b/screenshots/DiscoveryService_Dashboard.png new file mode 100644 index 0000000..9163728 Binary files /dev/null and b/screenshots/DiscoveryService_Dashboard.png differ diff --git a/start-sample.sh b/start-sample.sh index c075fce..954a938 100644 --- a/start-sample.sh +++ b/start-sample.sh @@ -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 \ No newline at end of file +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 \ No newline at end of file