bug: fixed changed Homebox endpoint and added better exception handling.

This commit is contained in:
2026-06-23 19:08:35 +02:00
parent 5776676eeb
commit f0d536d8f4
7 changed files with 36 additions and 14 deletions
@@ -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<>();