Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public void configureRepositoryRestConfiguration(RepositoryRestConfiguration con
// Expose identifiers (useful for clients)
config.exposeIdsFor(GatewayQuote.class, GatewayPayment.class);

// Return entity body on create/update so clients can rely on response payloads
config.setReturnBodyOnCreate(true);
config.setReturnBodyOnUpdate(true);

var exposure = config.getExposureConfiguration();

exposure.forDomainType(GatewayQuote.class)
Expand All @@ -44,4 +48,3 @@ public void configureRepositoryRestConfiguration(RepositoryRestConfiguration con
.enable(HttpMethod.DELETE));
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
@RepositoryRestResource(collectionResourceRel = "payments", path = "payment")
public interface PaymentRepository extends PagingAndSortingRepository<GatewayPayment, Long> {

// Inherit save(...) from CrudRepository; do not redeclare to avoid compiler issues in some toolchains
// Explicitly declare save to satisfy RepositoryInvoker detection in some setups
<S extends GatewayPayment> S save(S entity);

/**
* Retrieves a payment by its external payment identifier.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
@RepositoryRestResource(collectionResourceRel = "quotes", path = "quote")
public interface QuoteRepository extends PagingAndSortingRepository<GatewayQuote, Long> {

// Inherit save(...) from CrudRepository; do not redeclare to avoid compiler issues in some toolchains
// Explicitly declare save to satisfy RepositoryInvoker detection in some setups
<S extends GatewayQuote> S save(S entity);

/**
* Retrieves a quote by its external quote identifier.
Expand Down
Loading