What's the best practice of making non-restful API actions as exceptions?
What do you think is the rule to make non-restful actions in the API controller? Does it make sense make specific actions like 'send' vs 'create' occasionally? Does it make sense to break down one huge action 'update' to several, like "company/update" and "company/update_payment_method"? What do you think are the rules for this?
1 comment
[ 4.1 ms ] story [ 14.2 ms ] threadIf I'm trying to break up a larger action into smaller ones often I'll parameterize the endpoint and use a service object or some sort of abstraction in the controller to keep the action from getting too big