From 4cb719c3fa09b58fdb5d30282dde8ba9d393cea2 Mon Sep 17 00:00:00 2001 From: ElisKina-dev Date: Tue, 7 Jan 2025 12:49:13 +0100 Subject: [PATCH] fix path --- .../pagopa/pu/organization/repository/BrokerRepository.java | 2 +- .../pu/organization/repository/OrganizationRepository.java | 2 +- src/main/resources/application.yml | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/gov/pagopa/pu/organization/repository/BrokerRepository.java b/src/main/java/it/gov/pagopa/pu/organization/repository/BrokerRepository.java index 6b7ab60..e6c9113 100644 --- a/src/main/java/it/gov/pagopa/pu/organization/repository/BrokerRepository.java +++ b/src/main/java/it/gov/pagopa/pu/organization/repository/BrokerRepository.java @@ -7,7 +7,7 @@ import java.util.Optional; -@RepositoryRestResource(collectionResourceRel = "broker", path = "brokers") +@RepositoryRestResource(path = "brokers") public interface BrokerRepository extends JpaRepository { @Query("select b from broker b join Organization o on b.brokerId = o.brokerId " + diff --git a/src/main/java/it/gov/pagopa/pu/organization/repository/OrganizationRepository.java b/src/main/java/it/gov/pagopa/pu/organization/repository/OrganizationRepository.java index f6da89d..a5a4577 100644 --- a/src/main/java/it/gov/pagopa/pu/organization/repository/OrganizationRepository.java +++ b/src/main/java/it/gov/pagopa/pu/organization/repository/OrganizationRepository.java @@ -6,7 +6,7 @@ import java.util.Optional; -@RepositoryRestResource(path = "organizations", collectionResourceRel = "organization") +@RepositoryRestResource(path = "organizations") public interface OrganizationRepository extends JpaRepository { Optional findByIpaCode(String ipaCode); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ab2e363..3bbe2c2 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -8,6 +8,9 @@ spring: username: \${ORGANIZATION_DB_USER} password: \${ORGANIZATION_DB_PASSWORD} driverClassName: org.postgresql.Driver + data: + rest: + basePath: crud management: endpoint: