And maybe a pointer where I can start to learn.

I'm trying to automatically generate Drupal 7 nodes from an upload (ftp server side) that happens at very irregular intervals. It is important that Drupal acts in a timely manner on these uploads. The materials uploaded are a xml file and a small jpg file.

I have been told that I can use rules to automatically generate these nodes. But only if (quote):

"Because you require ftp to be involved, this should NOT be done with Rules, or even from within Drupal.
Monitoring changes in the file system is an OS-specific task. One way to do this in Linux is to write a daemon using inotify to detect and respond to changes in the files you want to use, then to directly query the Drupal database to create or modify your nodes. Or instead of a direct query, you could post to a Drupal menu callback which creates your nodes. If you use a callback then you will be able to use Rules and Drupal for some parts of this, but still not for detecting the ftp upload.
On the other hand, if you could change your requirement and have the files uploaded into Drupal directly, say via a REST call, instead of using ftp, then you could do the whole thing with Rules/Drupal."

And to quote further:

"You want a REST server, not a client (https://www.drupal.org/project/services) provides a REST service for Drupal in D7. In D8, the REST service is included with core. IF your files can be uploaded to your Drupal site by REST, instead of ftp, then you could use Rules to react on the REST events and to create nodes. Or you could use custom Drupal code to do this instead of Rules. But IF you have to use ftp and there's no alternative, then you will still need OS-specific code like I said in the previous comment."

So here I am. I installed the Drupal 7 version of the services module and the services_rules extension.

I can get help to transfer the file upload from ftp to a REST call. But looking at the possible settings in the services module just completely overloads me.

Can anyone point out some basic principles of the services module? I read the Services Handbook, but that lead to even more questions. I've been using and extending Drupal for 11 years, a REST call though, is something I never had to use. So I'm having a hard time even understanding the basics of that.

Is there such a thing like REST services for total dummies out there in the world wide web?

Best wishes,
Paul

Comments

paul_constantine created an issue. See original summary.

paul_constantine’s picture

Status: Active » Fixed

Fixed. Opted for a combination of Feeds, Feeds Tamper, File Field Path, Drush and Incrontab to get what I wanted to do. Some bugs remain, but it's working.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.