Skip to content

Commit 9fec12a

Browse files
committed
Add endpoint setting in config
1 parent b2803d5 commit 9fec12a

File tree

1 file changed

+15
-1
lines changed
  • services/natural_language_classifier

1 file changed

+15
-1
lines changed

services/natural_language_classifier/v1.html

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@
3232
<label for="node-input-password"><i class="fa fa-key"></i> Password</label>
3333
<input type="password" id="node-input-password" placeholder="Password">
3434
</div>
35+
36+
<div class="form-row credentials">
37+
<label>&nbsp;</label>
38+
<input type="checkbox" id="node-input-default-endpoint" style="display: inline-block; width: auto; vertical-align: top;">
39+
<label for="node-input-default-endpoint" style="width: 70%;"> Use Default Service Endpoint</label>
40+
</div>
41+
<div class="form-row">
42+
<label for="node-input-service-endpoint"><i class="fa fa-tag"></i> Service Endpoint</label>
43+
<input type="text" id="node-input-service-endpoint" placeholder="https://gateway.watsonplatform.net/natural-language-classifier/api">
44+
</div>
45+
3546
<div class="form-row">
3647
<label for="node-input-mode"><i class="fa fa-question"></i> Mode</label>
3748
<select type="text" id="node-input-mode" style="display: inline-block; width: 70%;" >
@@ -95,7 +106,9 @@
95106
name: {value: ""},
96107
mode: {value: "classify"},
97108
language: {value: "en"},
98-
classifier: {value: ""}
109+
classifier: {value: ""},
110+
'default-endpoint' :{value: true},
111+
'service-endpoint' :{value: 'https://gateway.watsonplatform.net/natural-language-classifier/api'}
99112
},
100113
credentials: {
101114
username: {type:"text"},
@@ -112,6 +125,7 @@
112125
labelStyle: function() {
113126
return this.name ? "node_label_italic" : "";
114127
},
128+
//oneditprepare: nlconeditprepare
115129
oneditprepare: function() {
116130
$('#node-input-mode').change(function () {
117131
var mode = $('#node-input-mode').val();

0 commit comments

Comments
 (0)