adding the web rest api