If you have never dealt with services before, then this guide may help you get a REST server on Drupal 7 up and running.
I have pulled this example module from other sources and made one small edit to it, of adding ->fetchAll() to the create function, but all you have to do is to install 1) the Services module, 2) the REST server within the Services module package, 3) this custom module below, and 4) the Firefox plugin called "Poster" (which allows you to check that everything is working). You can do this on any Drupal 7 site, as far as I know.
NOTE: The instructions written below are to get you up and running in your local environment so you understand how to make the site with a working REST server. Following these steps and not doing anything further may leave your site vulnerable.
You may also download the archive attached with files containing all the code shown here.
Here is the custom "noteresource" module to install:
noteresource.info:
name = Note Resource
description = Sample resource implementation
package = Notes example
core = 7.x
files[] = noteresource.inc
files[] = noteresource.module
noteresource.install:
<?php
// noteresource.install
/**
* Implementation of hook_schema().
*/
function noteresource_schema() {
$schema['note'] = array(
'description' => t('Stores information about notes.'),