Added REST API for getting all annotations by index