Data Access Layer for RESTful application