Added REST API getter functionality