add the http api implementation: work in progress...