Skip to content

Commit 3edd4dd

Browse files
authored
Tableau Server REST API 3.1 updates to samples (tableau#32)
* Update README.md Update version number to 3.1 * Update RestApiUtils.java Update version number to 3.1 * Update README.md Update version number to 3.1 * Update version.py Update version number to 3.1 * Update README.md Minor typo fix
1 parent f56a266 commit 3edd4dd

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

java/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
For example, you might see the following URL:
3232

3333
```
34-
/api/3.0/
34+
/api/3.1/
3535
```
3636

37-
If you want to use version 2.8 of the API, replace the URL with the following:
37+
If you want to use version 3.0 of the API, replace the URL with the following:
3838

3939
```
40-
/api/2.8/
40+
/api/3.0/
4141
```
4242

4343
## Running the sample

java/src/com/tableausoftware/documentation/api/rest/util/RestApiUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public static RestApiUtils getInstance() {
110110
* @return the URI builder
111111
*/
112112
private static UriBuilder getApiUriBuilder() {
113-
return UriBuilder.fromPath(m_properties.getProperty("server.host") + "/api/3.0");
113+
return UriBuilder.fromPath(m_properties.getProperty("server.host") + "/api/3.1");
114114
}
115115
/**
116116
* Initializes the RestApiUtils. The initialize code loads values from the configuration

python/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Running the samples
1010
* All samples require 2 arguments: server adress (without a trailing slash) and username
1111
* Run by executing ```python sample_file_name.py <server_address> <username>```
1212
* Specific information for each sample are included at the top of each file
13-
* API version is set to 3.0 by default for Tableau Server 2018.1, but it can be changed in [version.py](./version.py)
14-
* For Tableau Server 9.0, the REST API namespace must be changed (refer to comment in each sample where namespace, xmlns, is defined)
13+
* API version is set to 3.1 by default for Tableau Server 2018.2, but it can be changed in [version.py](./version.py)
14+
* For Tableau Server 9.0, the REST API namespace must be changed (refer to the comment in each sample where the namespace, `xmlns`, is defined)
1515

1616
REST API Samples
1717
---------------

python/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = '3.0'
1+
VERSION = '3.1'

0 commit comments

Comments
 (0)