We need to provide a simple REST-like web service interface for communicating with a 3rd party website:
Remote call to us:
https:/www.oursite.com/user/{ID}/logged_on
Returns to remote site:
"YES" | "NO"
The web service should be capable of:
- taking parameter (e.g.
IDin the above example) - do some look up / checking
- returns a plain text result
Do I need to write a custom module for that purpose?
You will need your own module for this, inside you should put this:
Replace “MODULENAME_” with the name of your module, and that should do the trick. This is assuming you have Drupal 6. It should be similar enough with drupal 5/7; the only differences are in the menu declaration.