Added first ajax call to rest api