implemented REST GET method