New user rest APIs

Move this outside of the "foreach ($sections as $section){" loop as it will be the same for each course.