Adding check for empty list argument and adding REST URLs for new endpoints