OpenBankProject / OpenBankProject/OBP-API

Provide endpoints showing which customers have access to which accounts.

Aperta
#601 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@constantine2nd ci sta già lavorando.

Dal 14/6/2017.

tesobe
Lingua principale
Scala
Stelle
1.7k
Fork
482
Merge medio
1g 12h
PR unite (30g)
15

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.