Fpc-developer Michael van Canneyt has announced the SQLDB Rest Bridge library. With this library it becomes really simple to expose a SQL-database through a REST service.
The library is a part of fcl-web, one of the packages that come with fpc. It’s a pity that the library is not available as a separate package, so that it could be used with fpc 3.0.4. At the moment you have to install fpc 3.3.1 or grab the sources and compile everything by yourself.