Skip to content

Commit 67f754b

Browse files
authored
Merge pull request #1139 from watson-developer-cloud/update-gateway-url
Update gateway urls
2 parents e7716c6 + 194d2ab commit 67f754b

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

compare-comply/src/main/java/com/ibm/watson/compare_comply/v1/CompareComply.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public class CompareComply extends BaseService {
6161
private static final String DEFAULT_SERVICE_NAME = "compare_comply";
6262

6363
private static final String DEFAULT_SERVICE_URL =
64-
"https://gateway.watsonplatform.net/compare-comply/api";
64+
"https://api.us-south.compare-comply.watson.cloud.ibm.com";
6565

6666
private String versionDate;
6767

discovery/src/test/java/com/ibm/watson/discovery/v1/DiscoveryServiceIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ public boolean ping() throws RuntimeException {
198198
@Test
199199
public void exampleIsSuccessful() {
200200
// Discovery discovery = new Discovery("2016-12-15");
201-
// discovery.setServiceUrl("https://gateway.watsonplatform.net/discovery/api");
201+
// discovery.setServiceUrl("https://api.us-south.discovery.watson.cloud.ibm.com");
202202
// discovery.setUsernameAndPassword("<username>", "<password");
203203
String environmentId = null;
204204
String configurationId = null;
@@ -363,7 +363,7 @@ public void badCredentialsThrowsException() {
363363
/** Ping bad url throws exception. */
364364
@Test(expected = NotFoundException.class)
365365
public void pingBadUrlThrowsException() {
366-
discovery.setServiceUrl("https://gateway.watsonplatform.net/discovery-foo/api");
366+
discovery.setServiceUrl("https://api.us-south.discovery.watson.cloud.ibm.com/discovery-foo");
367367
ping();
368368
}
369369

natural-language-classifier/src/test/resources/natural_language_classifier/classification.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"classifier_id": "47C164-nlc-243",
3-
"url": "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/47C164-nlc-243",
3+
"url": "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/47C164-nlc-243",
44
"text": "is it hot ?",
55
"top_class": "temperature",
66
"classes": [
@@ -13,4 +13,4 @@
1313
"confidence": 0.018102824692296068
1414
}
1515
]
16-
}
16+
}

natural-language-classifier/src/test/resources/natural_language_classifier/classification_collection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"classifier_id" : "10D41B-nlc-1",
3-
"url" : "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/10D41B-nlc-1",
3+
"url" : "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/10D41B-nlc-1",
44
"collection" : [ {
55
"text" : "How hot will it be today?",
66
"top_class" : "temperature",
@@ -22,4 +22,4 @@
2222
"confidence" : 0
2323
} ]
2424
} ]
25-
}
25+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"classifier_id": "5E00F7x2-nlc-507",
3-
"url": "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/5E00F7x2-nlc-507",
3+
"url": "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/5E00F7x2-nlc-507",
44
"name": "Music controls",
55
"language": "en",
66
"created": "2015-10-17T20:56:29.974Z"
7-
}
7+
}

natural-language-classifier/src/test/resources/natural_language_classifier/classifiers.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
"classifiers": [
33
{
44
"classifier_id": "47C164-nlc-243",
5-
"url": "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/47C164-nlc-243",
5+
"url": "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/47C164-nlc-243",
66
"name": "weather",
77
"language": "en",
88
"created": "2015-08-24T18:42:25.324Z"
99
},
1010
{
1111
"classifier_id": "5E00F7x2-nlc-507",
12-
"url": "https://gateway.watsonplatform.net/natural-language-classifier/api/v1/classifiers/5E00F7x2-nlc-507",
12+
"url": "https://api.us-south.natural-language-classifier.watson.cloud.ibm.com/v1/classifiers/5E00F7x2-nlc-507",
1313
"name": "Music controls",
1414
"language": "en",
1515
"created": "2015-10-17T20:56:29.974Z"
1616
}
1717
]
18-
}
18+
}

speech-to-text/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ System.out.println(transcript);
3939

4040
#### WebSocket support
4141

42-
Speech to Text supports WebSocket, the url is: `wss://stream.watsonplatform.net/speech-to-text/api/v1/recognize`
42+
Speech to Text supports WebSocket, the url is: `wss://api.us-south.speech-to-text.watson.cloud.ibm.com/v1/recognize`
4343

4444
```java
4545
Authenticator authenticator = new IamAuthenticator("<iam_api_key>");

speech-to-text/src/test/resources/speech_to_text/jobs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"id": "2d0ef860-872e-11e6-90d3-5f28bc58ceb2",
99
"status": "processing",
1010
"created": "2016-09-30T16:51:47.558",
11-
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/recognitions/2d0ef860-872e-11e6-90d3-5f28bc58ceb2"
11+
"url": "https://api.us-south.speech-to-text.watson.cloud.ibm.com/v1/recognitions/2d0ef860-872e-11e6-90d3-5f28bc58ceb2"
1212
}, {
1313
"id": "2d0ef860-872e-11e6-90d3-5f28bc58ceb2",
1414
"results": [{

0 commit comments

Comments
 (0)