Added REST API for labels.