Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
rest.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
30 Dec 2014 at 03:38 UTC
Updated:
18 Feb 2015 at 15:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
-enzo- commentedI did a patch to implement REST State PUT for entity updates, this patch was created on top patch #2300677: JSON:API POST/PATCH support for fully validatable config entities.
Summary of patch
Add a new Method: PUT
Add a new format: form handle by JSON serialize
ToDo.
The logic save the entity but don't receive properly the values send by client
Comment #2
pcambraFrom https://groups.drupal.org/node/284948
I think PATCH is preferred.
Comment #3
klausiDid you try PATCH with backbone? It should work nearly identical to PUT, except that you only have to send fields that you want to change.
Comment #4
-enzo- commentedOHH I didn't know that.
OK I will work in that direction, and inform my results thanks @klausi
Comment #5
clemens.tolboomI can confirm patch is working on hal+json so closing this.