bug: fixed changed Homebox endpoint and added better exception handling.
This commit is contained in:
@@ -2,7 +2,7 @@ package com.vaessl.app.connection;
|
||||
|
||||
public enum Endpoint {
|
||||
HOMEBOX_LOGIN("/api/v1/users/login"), LOGIN("/login"), CONNECTION_STATUS(
|
||||
"/connections/status"), HOMEBOX_QUERY_ALL_ITEMS("/api/v1/items"), SEARCH("/search");
|
||||
"/connections/status"), HOMEBOX_QUERY_ALL_ITEMS("/api/v1/entities"), SEARCH("/search");
|
||||
|
||||
private final String value;
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ public class HomeboxConnectionProvider implements ConnectionProvider {
|
||||
.body(HomeboxLoginResponse.class);
|
||||
|
||||
if (hbResponse == null) {
|
||||
throw new RemoteApiException(request.appUrl());
|
||||
throw new RemoteApiException(request.appUrl(), HOMEBOX_LOGIN.getValue());
|
||||
}
|
||||
|
||||
Map<String, Object> attachmentToken = new HashMap<>();
|
||||
|
||||
Reference in New Issue
Block a user