a Collection class that can be used to call a collection used this for the list and receive rest api.