Skip to content

Commit 93193ab

Browse files
committed
updated readme
1 parent 99c5261 commit 93193ab

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ ObjectMapper objectMapper = new ObjectMapper();
139139
CamundaOperateClientConfiguration configuration =
140140
new CamundaOperateClientConfiguration(
141141
authentication, operateUrl, objectMapper, HttpClients.createDefault());
142-
CamundaOperateClient client = new CamundaOperateClient(configuration);
142+
CamundaOperateClient client = new CamundaOperateClientV1(configuration);
143143
```
144144

145145
Build a Camunda Operate client with identity authentication:
@@ -163,7 +163,7 @@ JwtAuthentication authentication = new JwtAuthentication(credentials);
163163
CamundaOperateClientConfiguration configuration =
164164
new CamundaOperateClientConfiguration(
165165
authentication, operateUrl, objectMapper, HttpClients.createDefault());
166-
CamundaOperateClient client = new CamundaOperateClient(configuration);
166+
CamundaOperateClient client = new CamundaOperateClientV1(configuration);
167167
```
168168

169169
> **Note**: The `JwtCredential` constructor also supports an optional `resource` parameter. If you need to specify a resource in your OAuth2 token requests, you can use the extended constructor that includes the resource parameter.
@@ -186,7 +186,7 @@ JwtAuthentication authentication = new JwtAuthentication(credentials);
186186
CamundaOperateClientConfiguration configuration =
187187
new CamundaOperateClientConfiguration(
188188
authentication, operateUrl, objectMapper, HttpClients.createDefault());
189-
CamundaOperateClient client = new CamundaOperateClient(configuration);
189+
CamundaOperateClient client = new CamundaOperateClientV1(configuration);
190190
```
191191

192192
## Getting and Searching

examples/readme-snippets/src/main/java/io/camunda/operate/example/OperateClientBootstrapper.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.fasterxml.jackson.databind.ObjectMapper;
44
import io.camunda.operate.CamundaOperateClient;
55
import io.camunda.operate.CamundaOperateClientConfiguration;
6+
import io.camunda.operate.CamundaOperateClientV1;
67
import io.camunda.operate.auth.JwtAuthentication;
78
import io.camunda.operate.auth.JwtCredential;
89
import io.camunda.operate.auth.SimpleAuthentication;
@@ -30,7 +31,7 @@ public CamundaOperateClient createOperateClient() throws MalformedURLException {
3031
CamundaOperateClientConfiguration configuration =
3132
new CamundaOperateClientConfiguration(
3233
authentication, operateUrl, objectMapper, HttpClients.createDefault());
33-
CamundaOperateClient client = new CamundaOperateClient(configuration);
34+
CamundaOperateClient client = new CamundaOperateClientV1(configuration);
3435
return client;
3536
}
3637
}
@@ -55,7 +56,7 @@ public CamundaOperateClient createOperateClient() throws MalformedURLException {
5556
CamundaOperateClientConfiguration configuration =
5657
new CamundaOperateClientConfiguration(
5758
authentication, operateUrl, objectMapper, HttpClients.createDefault());
58-
CamundaOperateClient client = new CamundaOperateClient(configuration);
59+
CamundaOperateClient client = new CamundaOperateClientV1(configuration);
5960
return client;
6061
}
6162
}
@@ -77,7 +78,7 @@ public CamundaOperateClient createOperateClient() throws MalformedURLException {
7778
CamundaOperateClientConfiguration configuration =
7879
new CamundaOperateClientConfiguration(
7980
authentication, operateUrl, objectMapper, HttpClients.createDefault());
80-
CamundaOperateClient client = new CamundaOperateClient(configuration);
81+
CamundaOperateClient client = new CamundaOperateClientV1(configuration);
8182
return client;
8283
}
8384
}

0 commit comments

Comments
 (0)