Merge pull request #4011 from AndrewVolosytnykhThingsboard/andrew-restclient-fix

Rest Client unable to get device types fix #3992
This commit is contained in:
Igor Kulikov 2021-01-29 13:13:14 +02:00 committed by GitHub
commit cd4a149d8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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