Active
Project:
REST Server
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2010 at 08:49 UTC
Updated:
15 Oct 2010 at 13:49 UTC
From http://groups.drupal.org/node/84189
It would be good to make the $action_mapping in RESTServer.inc resolveController() pluggable. For example, the current implementation forces PUT to be used to update, but PUT should be available for creation when the id can be specified by the REST client.
Comments
Comment #1
voxpelli commentedThinking about this - why can't you just use the update method for both creation and updating? Within that method you can check whether the thing that should be created already exists and if it does you can update it instead.
I can see no specific gain in making this part of the REST Server pluggable - it's much easier if each resource makes use of what's already there.