Added Rest API, needs to be extended