Skip to content

Commit 8d00a4e

Browse files
committed
Adding of updatePost() into RestEndPoints
1 parent dc67da7 commit 8d00a4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/org/restcomm/sdk/endpoints/RestEndpoints.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ public T create(T entity) {
3838
return httpClient.post(url, entity, type);
3939
}
4040

41+
public T updatePost(String id, T entity) {
42+
return httpClient.post(url + "/" + id, entity, type);
43+
}
44+
4145
public T update(T entity) {
4246
return httpClient.put(url, entity, type);
4347
}

0 commit comments

Comments
 (0)