First version of Rest API