Skip to content

Commit 5c1a5a1

Browse files
committed
Update RestApiClient docs and add a BASE_SERVICE_URL constant.
1 parent a282afc commit 5c1a5a1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/main/java/com/softlayer/api/RestApiClient.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@
3030
*/
3131
public class RestApiClient implements ApiClient {
3232

33+
/**
34+
* The publically available API URL.
35+
*/
3336
public static final String BASE_URL = "https://api.softlayer.com/rest/v3.1/";
37+
38+
/**
39+
* The API URL that should be used when connecting via the softlayer/classic infrastructure private network.
40+
*/
41+
public static final String BASE_SERVICE_URL = "https://api.service.softlayer.com/rest/v3.1/";
3442

3543
static final String BASE_PKG = Entity.class.getPackage().getName();
3644

@@ -58,6 +66,9 @@ public class RestApiClient implements ApiClient {
5866
private boolean loggingEnabled = false;
5967
private HttpBasicAuthCredentials credentials;
6068

69+
/**
70+
* Create a Rest client that uses the publically available API.
71+
*/
6172
public RestApiClient() {
6273
this(BASE_URL);
6374
}

0 commit comments

Comments
 (0)