-
-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
My resource has the following update action:
update :close do
change set_attribute(:status, "closed")
endWhen exposing it via JSON:API I think the most reasonable thing to do is expose it as a DELETE endpoint.
Describe the solution you'd like
Allow delete route entities to accept update actions in addition to destroy and generic actions.
Describe alternatives you've considered
routes do
base "/tickets"
patch :close, route: "/:id/close"
endExpress the feature either with a change to resource syntax, or with a change to the resource interface
routes do
base "/tickets"
delete :close
endAdditional context
🐚
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Someday