A HTTP server that receives a REST request and replies with a JSON encoded reply.  Note that this code is not open source nor is it public domain.  It is free to use, however.  See the licence at the head of the file restserver.py.