setting up basic api for lesson and unit