problems with rest Api