rest for get all and get one