rest api integration