adding index api for list all