Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
rest.module
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2013 at 10:53 UTC
Updated:
29 Jul 2014 at 22:36 UTC
Jump to comment: Most recent file
Comments
Comment #1
klausiI thought that it is not a good idea to have the Drupal installation bloated with additional node routes, but those routes would only be active if REST module is enabled. So only people enabling REST module would be affected, and they want it anyway because they enabled the module :-)
Yes, this is safe from a security access point of view. So no objection from me, patches welcome :-)
Comment #2
webchickYes, please!
And since the instructions that are currently there in the help text are not working at all (due to a recent-ish change in CMI to only allow staging of entire configuration trees, adding just a rest.settings.yml to your staging directory results in 1 file changed, and 179 removed :\), this seems like it's at least major. You could really hose your site right now by following them.
Comment #3
linclark commentedHere's a patch which configures all formats by default and documents how to add supported_formats.
I've also removed the detailed docs in hook_help in favor of keeping the docs in one place, the online handbook.
Comment #4
linclark commentedActually, now that I'm thinking of it, I think alexpott wanted to get rid of the docs in the online handbook.
If the docs should be in hook_help and not the handbook, set this to needs work and I'll update the patch.
Comment #5
klausiI would also favor to just keep everything on the drupal.org doc page. It is much harder to get a core commit to change help text compared to just editing a doc page ;-)
So we need to copy all the useful bits of information to the doc page before we remove it here. The note to enable HAL module for example is missing there.
Comment #6
linclark commentedI changed the doc page to include the dependency on HAL for POSTing.
Comment #7
klausiOK, we should also put some working curl command line examples on the doc page, but that can be added later.
Comment #8
alexpottCommitted c25950f and pushed to 8.x. Thanks!