Skip to content

Commit

Permalink
fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
ElisKina-dev committed Jan 7, 2025
1 parent 7b4a847 commit e874e75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import java.util.Optional;

@RepositoryRestResource(collectionResourceRel = "broker", path = "brokers")
@RepositoryRestResource(path = "brokers")
public interface BrokerRepository extends JpaRepository<Broker,Long> {

@Query("select b from broker b join Organization o on b.brokerId = o.brokerId " +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import java.util.Optional;

@RepositoryRestResource(path = "organizations", collectionResourceRel = "organization")
@RepositoryRestResource(path = "organizations")
public interface OrganizationRepository extends JpaRepository<Organization, Long> {

Optional<Organization> findByIpaCode(String ipaCode);
Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ spring:
username: "\${ORGANIZATION_DB_USER}"
password: "\${ORGANIZATION_DB_PASSWORD}"
driverClassName: org.postgresql.Driver
data:
rest:
basePath: crud

management:
endpoint:
Expand Down

0 comments on commit e874e75

Please sign in to comment.