|
|
|
|
|
by amk_
3566 days ago
|
|
What if 'status' isn't a column in the account database? What if closed_accounts is a join table or something else? Then wouldn't adding a /close route be hiding idiosyncrasies in your data model, not the other way around? It seems like we spend a lot of time designing object relations that map a domain, but maybe not so much mapping domain-specific actions. Or would you consider all of the above bad practice? |
|
If you're speaking HTML it can be as simple as:
Or even: If you're speaking Siren (https://github.com/kevinswiber/siren):