add REST api.
proof of concept of querying DB for a map object.