mirror of
https://github.com/jlengrand/sample-node-api.git
synced 2026-03-10 00:31:19 +00:00
added screenshot after registeration, and new build folder
Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
This commit is contained in:
12
README.md
12
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**
|
||||

|
||||
|
||||

|
||||
|
||||
**Discovery Service Dashboard**
|
||||

|
||||
|
||||
BIN
build/sample-node-api.zip
Normal file
BIN
build/sample-node-api.zip
Normal file
Binary file not shown.
@@ -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:
|
||||
|
||||
BIN
screenshots/APICatalog_Dashboard.png
Normal file
BIN
screenshots/APICatalog_Dashboard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 93 KiB |
BIN
screenshots/ApiCatalog_SampleNodeApi_SwaggerDoc.png
Normal file
BIN
screenshots/ApiCatalog_SampleNodeApi_SwaggerDoc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 50 KiB |
BIN
screenshots/DiscoveryService_Dashboard.png
Normal file
BIN
screenshots/DiscoveryService_Dashboard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 136 KiB |
@@ -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
|
||||
Reference in New Issue
Block a user