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

laurencefass created an issue.

tyler.frankenstein’s picture

can jdrupal or drupalgap provide get/post/patch of nested objects?

Yes 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...

what about plugins? does jDrupal provide a plugin system (beyond native javascript inheritance).

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