Partially implemented js RESTful service for queries for resources.