|
|
|
|
|
by dragonwriter
3573 days ago
|
|
> If "close" is an action or activity that acts upon an accounts resource, then his approach makes sense. Right. Particularly, if a closure request is a thing that has its own status, identity, and associated data elements, which one might wish to examine and interact with (and, while its possible that such interaction might not be possible for external users with privileges only on their own accounts, it might well be possible for internal administrative users), then it makes sense as a resource, rather than a data element buried in representations of another resource. Without full behavioral requirements and domain model, you really don't know what makes the most sense. |
|
POST /accounts/4402278/close
You would have something like
POST /accounts/4402278/closures