I modified the node_service.module file and attached the patch file.

The modifications include:

Node.save

- added return statement
- added user validation check to ensure the user has access to save/edit the node
- user server time when saving a node

Node.delete

- changed name to node.deleteNode since delete is a reserved word in Flex

Node.load

- Added data from statistics and vote_up_down modules to the object being returned.

CommentFileSizeAuthor
node_service_module.patch1.8 KBAnonymous (not verified)

Comments

marcingy’s picture

Assigned: Unassigned » marcingy
marcingy’s picture

Status: Needs work » Postponed (maintainer needs more info)

Please provide a patch in the correct format or this will be closed.

robloach’s picture

Parts of the design here have issues......

  1. Provide a #access to each service method instead of just checking that for node.save, would help security stuff
  2. Return $node was just committed
  3. The data from statistics and vote_up_down modules should be loaded through different services from different module
marcingy’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)