Added queryies to Rest API