Merge pull request #4011 from AndrewVolosytnykhThingsboard/andrew-restclient-fix
Rest Client unable to get device types fix #3992
This commit is contained in:
commit
cd4a149d8a
@ -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…
x
Reference in New Issue
Block a user