Skip to content

refactor: call OBP-API on v5.1.0 or newer across the app stack - #10

Merged
simonredfern merged 23 commits into
OpenBankProject:mainfrom
hongwei1:feat/obp-v510-calls
Nov 10, 2026
Merged

simonredfern merged 23 commits into
OpenBankProject:mainfrom
hongwei1:feat/obp-v510-calls

Conversation

@hongwei1

@hongwei1 hongwei1 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Portal, API Manager, Cohort and the shared package now call every OBP-API endpoint that used a version below v5.1.0 on /obp/v5.1.0/..., so a deployment can disable v1.2.1 to v5.0.0 without breaking the apps; calls already on v5.1.0, v6.0.0 or v7.0.0 are unchanged. Each switched call was checked against the resource-doc catalogs: v5.1.0 serves the same implementation, apart from the product endpoints, which move to the v5.0.0 implementation with an identical schema. Cohort looks members up with GET /obp/v7.0.0/users?username=, which searches all identity providers and takes an exact match; a username held by users of more than one provider gets its own message (member_ambiguous). The changes are grouped by resource, the developer pages and notes show v5.1.0 paths, and packages/shared/src/lib/server/obp/obpApiVersion.test.ts fails if a call below v5.1.0 is added, including one built without a leading slash, by concatenation or from a version constant. It was verified on a local stack with v1.2.1 to v5.0.0 disabled (Portal and API Manager login through OBP-OIDC, the affected pages, no 404s from OBP-API).

Not covered yet: the two Cohort calls to /obp/v4.0.0/banks/BANK_ID/customers?organisation_kind= stay as they are, listed in that test, until the v7.0.0 attribute filter in OpenBankProject/OBP-API#2966 is released.

@simonredfern
simonredfern merged commit 29f42a8 into OpenBankProject:main Nov 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants