Started working with rest api