This module adds Services support to the community module called content_lock that will prevent two users from editing the same node concurrently. This module exposes the main operations of content_lock through Services as a resource, so that content locking can be done over a web service API such as REST for mobile applications or third party integrations. The main operations it currently implements are retrieve, create, and delete.
This module exposes the following operations of content_lock as a web service:
- retrieve - Find out if a node is locked and get info about a lock e.g. who owns the lock and when it was created.
- create - Create a new content lock on a node. Locks a node preventing other users from editing it.
- delete - Deletes an existing lock on a node. Only the lock owner may delete the lock.
- Watch the step-by-step video tutorial (Best viewed in HD 720p)
- or follow these steps -
- Install and enable the dependant modules: Services, content_lock.
- Enable the rest_server module which is a sub-module of Services
- Install and enable this module.
Import the services endpoint.
- Navigate to: admin/structure/services
- Click the "Import" link
- Copy & paste the contents of this file into the box: services_content_lock/examples/endpoint_import.txt
- Click Continue then click Save
- Check out the example curl command bash scripts located in: services_content_lock/examples/
- Use the detailed documentation for usage and operation details.
NOTE: It is a good idea to delete the examples/ directory on production environments.
You might want to use this module if..
You want to use Drupal as a datastore, but edit content through a different interface, e.g. a mobile application, or a thrid party system like SFDC, and you want to prevent concurrent editing.
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Content, Content Access Control, Developer, Mobile, Third-party Integration
- Reported installs: 1 site currently reports using this module. View usage statistics.
- Downloads: 213
- Last modified: December 1, 2014