|
|
|
|
|
by blowski
3564 days ago
|
|
So I would make a request like: POST /transfer
from_account_id=12345&to_account_id=67890&amount=10
Perhaps I've misunderstood your comment, as I don't really understand why this is better than the original: POST /accounts/12345/transfer
to_account_id=67890&amount=10
or even: POST /accounts/12345/withdraw
amount=10
|
|
The key point though is that 'transfer' is the resource to perform all three of the original deposit/withdrawal/transfer actions.