Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
can jdrupal or drupalgap provide get/post/patch of nested objects? do you think this would be useful as an extension?
what about plugins? does jDrupal provide a plugin system (beyond native javascript inheritance). Given the enormity of scope for js client operations an extendible system would be great.
Comments
Comment #2
tyler.frankenstein CreditAttribution: tyler.frankenstein commentedYes it can. Under the hood jDrupal just uses XHR, and that itself can be used to GET/POST/PATCH/DELETE objects. The user login routine has a small example of POST a JSON object with two properties (name/pass): https://github.com/signalpoint/jDrupal/blob/8.x-1.x/src/includes/rest.in...
jDrupal allows modules to be written, in fact DrupalGap is really just a collection of modules for jDrupal. There isn't much documentation about actually making a module for jDrupal, most of the documentation pertains to creating modules for DrupalGap (which are technically just jDrupal modules). Here's a little snippet/issue about creating custom jDrupal modules: https://github.com/signalpoint/jDrupal/issues/71 - However, if you're using DrupalGap on top of it, then I'd recommend just following the DrupalGap module docs: http://docs.drupalgap.org/8/Modules/Create_a_Custom_Module