Initial rest api integration with the frontend.