Skip to content

Commit 48242ce

Browse files
committed
Fix: Remove extra slash from URLs
1 parent ab1bacb commit 48242ce

File tree

6 files changed

+35
-7
lines changed

6 files changed

+35
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The client is available in the [Maven Central Repository](https://mvnrepository.
1313
<dependency>
1414
<groupId>com.recombee</groupId>
1515
<artifactId>api-client</artifactId>
16-
<version>2.1.0</version>
16+
<version>2.1.1</version>
1717
</dependency>
1818
```
1919

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.recombee</groupId>
88
<artifactId>api-client</artifactId>
9-
<version>2.1.0</version>
9+
<version>2.1.1</version>
1010
<name>Recombee API Client</name>
1111
<description>A client library for easy use of the Recombee recommendation API</description>
1212
<url>http://recombee.com</url>

src/main/java/com/recombee/api_client/RecombeeClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class RecombeeClient {
8585

8686
final int BATCH_MAX_SIZE = 10000; //Maximal number of requests within one batch request
8787

88-
final String USER_AGENT = "recombee-java-api-client/2.1.0";
88+
final String USER_AGENT = "recombee-java-api-client/2.1.1";
8989

9090
private final OkHttpClient httpClient = new OkHttpClient();
9191

@@ -763,7 +763,7 @@ public String send(Request request) throws ApiException {
763763
private String sendRequest(Request request) throws ApiException {
764764
String signedUri = signUrl(processRequestUri(request));
765765
String protocolStr = request.getEnsureHttps() ? "https" : this.defaultProtocol.name().toLowerCase();
766-
String uri = protocolStr + "://" + this.baseUri + "/" + signedUri;
766+
String uri = protocolStr + "://" + this.baseUri + signedUri;
767767

768768
OkHttpClient tempClient = this.httpClient.newBuilder()
769769
.connectTimeout(request.getTimeout(), TimeUnit.MILLISECONDS)

src/main/java/com/recombee/api_client/api_requests/AddItemProperty.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,29 @@ public class AddItemProperty extends Request {
2121
protected String propertyName;
2222
/**
2323
* Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`.
24+
* * `int`- Signed integer number.
25+
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
26+
* * `string` - UTF-8 string.
27+
* * `boolean` - *true* / *false*
28+
* * `timestamp` - Value representing date and time.
29+
* * `set` - Set of strings.
30+
* * `image` - URL of an image (`jpeg`, `png` or `gif`).
31+
* * `imageList` - List of URLs that refer to images.
2432
*/
2533
protected String type;
2634

2735
/**
2836
* Construct the request
2937
* @param propertyName Name of the item property to be created. Currently, the following names are reserved:`id`, `itemid`, case insensitively. Also, the length of the property name must not exceed 63 characters.
3038
* @param type Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`.
39+
* * `int`- Signed integer number.
40+
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
41+
* * `string` - UTF-8 string.
42+
* * `boolean` - *true* / *false*
43+
* * `timestamp` - Value representing date and time.
44+
* * `set` - Set of strings.
45+
* * `image` - URL of an image (`jpeg`, `png` or `gif`).
46+
* * `imageList` - List of URLs that refer to images.
3147
*/
3248
public AddItemProperty (String propertyName,String type) {
3349
this.propertyName = propertyName;

src/main/java/com/recombee/api_client/api_requests/AddUserProperty.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,26 @@ public class AddUserProperty extends Request {
2020
*/
2121
protected String propertyName;
2222
/**
23-
* Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`
23+
* Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`.
24+
* * `int` - Signed integer number.
25+
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
26+
* * `string` - UTF-8 string.
27+
* * `boolean` - *true* / *false*
28+
* * `timestamp` - Value representing date and time.
29+
* * `set` - Set of strings.
2430
*/
2531
protected String type;
2632

2733
/**
2834
* Construct the request
2935
* @param propertyName Name of the user property to be created. Currently, the following names are reserved:`id`, `userid`, case insensitively. Also, the length of the property name must not exceed 63 characters.
30-
* @param type Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`
36+
* @param type Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`.
37+
* * `int` - Signed integer number.
38+
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
39+
* * `string` - UTF-8 string.
40+
* * `boolean` - *true* / *false*
41+
* * `timestamp` - Value representing date and time.
42+
* * `set` - Set of strings.
3143
*/
3244
public AddUserProperty (String propertyName,String type) {
3345
this.propertyName = propertyName;

src/main/java/com/recombee/api_client/api_requests/MergeUsers.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
/**
1414
* Merges interactions (purchases, ratings, bookmarks, detail views ...) of two different users under a single user ID. This is especially useful for online e-commerce applications working with anonymous users identified by unique tokens such as the session ID. In such applications, it may often happen that a user owns a persistent account, yet accesses the system anonymously while, e.g., putting items into a shopping cart. At some point in time, such as when the user wishes to confirm the purchase, (s)he logs into the system using his/her username and password. The interactions made under anonymous session ID then become connected with the persistent account, and merging these two together becomes desirable.
15-
* Merging happens between two users referred to as the *target* and the *source*. After the merge, all the interactions of the source user are attributed to the target user, and the source user is **deleted** unless special parameter `keepSourceUser` is set `true`.
15+
* Merging happens between two users referred to as the *target* and the *source*. After the merge, all the interactions of the source user are attributed to the target user, and the source user is **deleted**.
1616
*/
1717
public class MergeUsers extends Request {
1818

0 commit comments

Comments
 (0)