diff --git a/docs/src/api/irs-api.yaml b/docs/src/api/irs-api.yaml index bdc7aa7534..ab7d6e247d 100644 --- a/docs/src/api/irs-api.yaml +++ b/docs/src/api/irs-api.yaml @@ -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: diff --git a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/controllers/PolicyStoreController.java b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/controllers/PolicyStoreController.java index e5db25cb70..a89af03c0d 100644 --- a/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/controllers/PolicyStoreController.java +++ b/irs-policy-store/src/main/java/org/eclipse/tractusx/irs/policystore/controllers/PolicyStoreController.java @@ -155,8 +155,9 @@ public CreatePoliciesResponse registerAllowedPolicy(@Valid @RequestBody final Cr @GetMapping("/policies") @ResponseStatus(HttpStatus.OK) @PreAuthorize("hasAuthority('" + IrsRoles.ADMIN_IRS + "')") - public Map> getPolicies(@RequestParam(required = false) final List bpnls) { - return service.getPolicies(bpnls) + public Map> getPolicies( + @RequestParam(required = false) final List businessPartnerNumbers) { + return service.getPolicies(businessPartnerNumbers) .entrySet() .stream() .map(entry -> new AbstractMap.SimpleEntry<>(entry.getKey(),