Lay the foundations for the REST API