Re:REST Anti-patterns
by blowski on Monday September 12, 2016 @11:27AM
(#12480522)
So I would make a request like:
Perhaps I've misunderstood your comment, as I don't really understand why this is better than the original:
or even:
[ Parent
| on HN ]
Having the /account/:accountid/transfer is not a terrible idea, but I would avoid it because the transfer resource is able to stand on it's own with making it tied to a single account resource.
The key point though is that 'transfer' is the resource to perform all three of the original deposit/withdrawal/transfer actions.