Updated rest api to support multie id fetching