turned rest-api into a lesson