Browse Source
Merge pull request #4011 from AndrewVolosytnykhThingsboard/andrew-restclient-fix
Rest Client unable to get device types fix #3992
pull/4059/head
Igor Kulikov
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
rest-client/src/main/java/org/thingsboard/rest/client/RestClient.java
|
|
|
@ -1170,7 +1170,7 @@ public class RestClient implements ClientHttpRequestInterceptor, Closeable { |
|
|
|
|
|
|
|
public List<EntitySubtype> getDeviceTypes() { |
|
|
|
return restTemplate.exchange( |
|
|
|
baseURL + "/api/devices", |
|
|
|
baseURL + "/api/device/types", |
|
|
|
HttpMethod.GET, |
|
|
|
HttpEntity.EMPTY, |
|
|
|
new ParameterizedTypeReference<List<EntitySubtype>>() { |
|
|
|
|