Skip to content

Commit

Permalink
fix(impl): [#199] Rename request parameter for GET policies
Browse files Browse the repository at this point in the history
  • Loading branch information
dsmf committed Mar 28, 2024
1 parent 8e89f0d commit 2be0088
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/api/irs-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ paths:
description: Lists the registered policies that should be accepted in EDC negotiation.
operationId: getAllowedPoliciesByBpn
parameters:
- name: bpnls
- name: businessPartnerNumbers
in: query
required: false
schema:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ public CreatePoliciesResponse registerAllowedPolicy(@Valid @RequestBody final Cr
@GetMapping("/policies")
@ResponseStatus(HttpStatus.OK)
@PreAuthorize("hasAuthority('" + IrsRoles.ADMIN_IRS + "')")
public Map<String, List<PolicyResponse>> getPolicies(@RequestParam(required = false) final List<String> bpnls) {
return service.getPolicies(bpnls)
public Map<String, List<PolicyResponse>> getPolicies(
@RequestParam(required = false) final List<String> businessPartnerNumbers) {
return service.getPolicies(businessPartnerNumbers)
.entrySet()
.stream()
.map(entry -> new AbstractMap.SimpleEntry<>(entry.getKey(),
Expand Down

0 comments on commit 2be0088

Please sign in to comment.