Skip to content

Commit 2bd3699

Browse files
committed
Allow endpoint to be selected
1 parent d6b06f9 commit 2bd3699

File tree

2 files changed

+30
-11
lines changed

2 files changed

+30
-11
lines changed

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-node-watson",
3-
"version": "0.6.13",
3+
"version": "0.6.14",
44
"description": "A collection of Node-RED nodes for IBM Watson services",
55
"dependencies": {
66
"async": "^1.5.2",
@@ -9,13 +9,13 @@
99
"request": "~2.86.0",
1010
"temp": "^0.8.3",
1111
"qs": "6.x",
12-
"image-type": "^2.0.2",
13-
"watson-developer-cloud": "^3.3.0",
12+
"image-type": "^2.0.2",
13+
"watson-developer-cloud": "^3.4.2",
1414
"kuromoji": "^0.1.1",
1515
"word-count": "^0.2.2",
1616
"is-docx": "^0.0.3",
17-
"stream-to-array" : "^2.3.0",
18-
"ws" : "^4.1.0"
17+
"stream-to-array": "^2.3.0",
18+
"ws": "^4.1.0"
1919
},
2020
"repository": {
2121
"type": "git",
@@ -27,18 +27,19 @@
2727
"bluemix",
2828
"watson"
2929
],
30-
"contributors": [ {
30+
"contributors": [
31+
{
3132
"name": "Soheel Chughtai",
3233
"email": "[email protected]"
3334
}
3435
],
3536
"node-red": {
3637
"nodes": {
37-
"watson-conversation-v1":"services/conversation/v1.js",
38-
"watson-conversation-workspace-manager-v1":"services/conversation/v1-workspace-manager.js",
39-
"watson-discovery-v1":"services/discovery/v1.js",
40-
"watson-discovery-v1-document-loader":"services/discovery/v1-document-loader.js",
41-
"watson-discovery-v1-query-builder":"services/discovery/v1-query-builder.js",
38+
"watson-conversation-v1": "services/conversation/v1.js",
39+
"watson-conversation-workspace-manager-v1": "services/conversation/v1-workspace-manager.js",
40+
"watson-discovery-v1": "services/discovery/v1.js",
41+
"watson-discovery-v1-document-loader": "services/discovery/v1-document-loader.js",
42+
"watson-discovery-v1-query-builder": "services/discovery/v1-query-builder.js",
4243
"watson-language-translator-v2": "services/language_translator/v2.js",
4344
"watson-language-translator-identify-v2": "services/language_translator_identify/v2.js",
4445
"watson-language-translator-util-v2": "services/language_translator_util/v2.js",

services/visual_recognition/v3.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
<label for="node-input-apikey"><i class="fa fa-key"></i> API Key</label>
2525
<input type="password" id="node-input-apikey" placeholder="API Key">
2626
</div>
27+
<div class="form-row">
28+
<label for="node-input-vr-service-endpoint"><i class="fa fa-tag"></i> Service Endpoint</label>
29+
<select type="text" id="node-input-vr-service-endpoint" style="display: inline-block; width: 70%;" >
30+
<option value="https://gateway-a.watsonplatform.net/visual-recognition/api">https://gateway-a.watsonplatform.net/visual-recognition/api</option>
31+
<option value="https://gateway.watsonplatform.net/visual-recognition/api">https://gateway.watsonplatform.net/visual-recognition/api</option>
32+
</select>
33+
</div>
34+
2735
<div class="form-row">
2836
<label for="node-input-image-feature"><i class="fa fa-book"></i> Detect: </label>
2937
<select type="text" id="node-input-image-feature" style="display: inline-block; width: 70%;">
@@ -61,6 +69,14 @@
6169
<label for="node-input-apikey"><i class="fa fa-key"></i> API Key</label>
6270
<input type="password" id="node-input-apikey" placeholder="API Key">
6371
</div>
72+
<div class="form-row">
73+
<label for="node-input-vr-service-endpoint"><i class="fa fa-tag"></i> Service Endpoint</label>
74+
<select type="text" id="node-input-vr-service-endpoint" style="display: inline-block; width: 70%;" >
75+
<option value="https://gateway-a.watsonplatform.net/visual-recognition/api">https://gateway-a.watsonplatform.net/visual-recognition/api</option>
76+
<option value="https://gateway.watsonplatform.net/visual-recognition/api">https://gateway.watsonplatform.net/visual-recognition/api</option>
77+
</select>
78+
</div>
79+
6480
<div class="form-row">
6581
<label for="node-input-image-feature"><i class="fa fa-book"></i> Detect: </label>
6682
<select type="text" id="node-input-image-feature" style="display: inline-block; width: 70%;">
@@ -148,6 +164,7 @@
148164
defaults: {
149165
name: {value: ""},
150166
apikey: {value: ""},
167+
'vr-service-endpoint' :{value: 'https://gateway-a.watsonplatform.net/visual-recognition/api'},
151168
"image-feature": {value: ""},
152169
"lang": {value: ""},
153170
},
@@ -216,6 +233,7 @@
216233
defaults: {
217234
name: {value: ""},
218235
apikey: {value: ""},
236+
'vr-service-endpoint' :{value: 'https://gateway-a.watsonplatform.net/visual-recognition/api'},
219237
"image-feature": {value: ""}
220238
},
221239
credentials: {

0 commit comments

Comments
 (0)