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() {
|
public List<EntitySubtype> getDeviceTypes() {
|
||||||
return restTemplate.exchange(
|
return restTemplate.exchange(
|
||||||
baseURL + "/api/devices",
|
baseURL + "/api/device/types",
|
||||||
HttpMethod.GET,
|
HttpMethod.GET,
|
||||||
HttpEntity.EMPTY,
|
HttpEntity.EMPTY,
|
||||||
new ParameterizedTypeReference<List<EntitySubtype>>() {
|
new ParameterizedTypeReference<List<EntitySubtype>>() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user