Closed
Description
Currently the resource collection URLs that are used to create
and list
resources are implicit.
e.g. Given a payment pointer https://example
the resource collection for creating new incoming payments is https://example/incoming-payments
.
There seems to be no advantage to this given that we require a client to get a grant to access any of these URLs.
A cleaner and more extensible solution would be for the server to provide the URL of the resource collection to the client as part of the grant response.
Example: AS response for grant to create/read incoming payments
{
"access_token": {
"access": [
{
"type": "incoming-payment",
"actions": ["create", "read", "list"],
"locations":["https://example/incoming"]
}
]
}
}
From this response the client knows that it must perform create
and list
operations by making a POST
or a GET
to https://example/incoming
.
Metadata
Metadata
Assignees
Type
Projects
Status
Done