Implemented REST API for findById