Added REST API

Added REST API