REST API for the final exercise