OpenBankProject / OpenBankProject/OBP-API

Provide endpoints showing which customers have access to which accounts.

Open
#601 1 comment 0 reactions 1 assignee View on GitHub

@constantine2nd is already working on this.

Since Jun 14, 2017.

tesobe
Dominant language
Scala
Stars
1.7k
Forks
482
Avg merge
1d 12h
Merged PRs (30d)
15

Description

Add new endpoints that list the customers linked to the view of an account.

List all customers for the (implicit) "owner" view.
obp/v2.2.0/my/banks/BANK_ID/accounts/ACCOUNT_ID/customer-views

List all customers for a certain view
obp/v2.2.0/banks/BANK_ID/accounts/ACCOUNT_ID/views/VIEW_ID/customer_views

List all Customers + Views they have access to:
obp/v2.2.0/banks/BANK_ID/accounts/ACCOUNT_ID/customer-views

Probably makes sense to have a customer-views resource like so:

customer-views:

[{
	"user": {
		"user_id": "5995d6a2-01b3-423c-a173-5481df49bdaf",
		"email": "robert.x.0.gh@example.com",
		"provider_id": "robert.x.0.gh",
		"provider": "OBP",
		"username": "robert.x.0.gh"
	},
	"customer": {
		"customer_id": "yauiuy67876f",
		"customer_number": "12345",
		"legal_name": "Robert Manchester"
	},
	"view": {
		"view_id": "owner",
		"short_name": "Accountant",
		"description": "For the accountants",
		"is_public": false
	}
}]

Get the customers like this:

Account -> View (e.g. owner) -> User -> User Customer Links -> Customer

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.