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
parent
commit
cd4a149d8a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rest-client/src/main/java/org/thingsboard/rest/client/RestClient.java

2
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>>() {

Loading…
Cancel
Save