Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Add the following to your `build.gradle` or `build.gradle.kts` file:

```groovy
dependencies {
implementation("com.vonage:server-sdk:9.11.0")
implementation("com.vonage:server-sdk:9.12.0")
}
```

Expand All @@ -94,7 +94,7 @@ Add the following to the `<dependencies>` section of your `pom.xml` file:
<dependency>
<groupId>com.vonage</groupId>
<artifactId>server-sdk</artifactId>
<version>9.11.0</version>
<version>9.12.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.vonage</groupId>
<artifactId>server-sdk</artifactId>
<version>9.11.0</version>
<version>9.12.0</version>

<name>Vonage Java Server SDK</name>
<description>Java client for Vonage APIs</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/vonage/client/HttpWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class HttpWrapper {

private static final String
CLIENT_NAME = "vonage-java-sdk",
CLIENT_VERSION = "9.11.0",
CLIENT_VERSION = "9.12.0",
JAVA_VERSION = System.getProperty("java.version"),
USER_AGENT = String.format("%s/%s java/%s", CLIENT_NAME, CLIENT_VERSION, JAVA_VERSION);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ class Endpoint<T, R> extends DynamicEndpoint<T, R> {
.responseExceptionType(ConversationsResponseException.class)
.requestMethod(method).wrapper(wrapper).pathGetter((de, req) -> {
String base = de.getHttpWrapper().getHttpConfig().getApiBaseUri();
return base + pathGetter.apply(req);
String path = base + pathGetter.apply(req);
// The API gateway stopped routing trailing-slash paths to their
// canonical form (broke ~2026-06-06), so strip a trailing slash
// from any Conversations route that would otherwise end in one.
return path.endsWith("/") ? path.substring(0, path.length() - 1) : path;
})
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ protected HttpMethod expectedHttpMethod() {

@Override
protected String expectedEndpointUri(ListConversationsRequest request) {
return "/v1/conversations/";
return "/v1/conversations";
}

@Override
Expand Down Expand Up @@ -748,7 +748,7 @@ protected HttpMethod expectedHttpMethod() {

@Override
protected String expectedEndpointUri(Conversation request) {
return "/v1/conversations/";
return "/v1/conversations";
}

@Override
Expand Down Expand Up @@ -1176,7 +1176,7 @@ protected HttpMethod expectedHttpMethod() {

@Override
protected String expectedEndpointUri(ListMembersRequest request) {
return "/v1/conversations/"+request.conversationId+"/members/";
return "/v1/conversations/"+request.conversationId+"/members";
}

@Override
Expand Down Expand Up @@ -1325,7 +1325,7 @@ protected HttpMethod expectedHttpMethod() {

@Override
protected String expectedEndpointUri(Member request) {
return "/v1/conversations/"+request.getConversationId()+"/members/";
return "/v1/conversations/"+request.getConversationId()+"/members";
}

@Override
Expand Down Expand Up @@ -1670,7 +1670,7 @@ protected HttpMethod expectedHttpMethod() {

@Override
protected String expectedEndpointUri(ListEventsRequest request) {
return "/v1/conversations/"+request.conversationId+"/events/";
return "/v1/conversations/"+request.conversationId+"/events";
}

@Override
Expand Down Expand Up @@ -1734,7 +1734,7 @@ protected HttpMethod expectedHttpMethod() {

@Override
protected String expectedEndpointUri(Event request) {
return "/v1/conversations/"+request.conversationId+"/events/";
return "/v1/conversations/"+request.conversationId+"/events";
}

@Override
Expand Down
Loading