Application Programming Interface (API) for AJAX or Mobile Development

Some functions in the University Package are available to external code via special URLs.

Please Note

Users should familiarise themselves with the Can I call C1 Functions AJAX style from JavaScript or Flash? page on the Orckestra C1 website.

You must install the ExecuteC1FunctionHttpHandler.cs file in the ~/App_Code folder before these functions will work!

Function: URL (with demonstration variables): Notes:
BaileyWeb.University.Data.GetCourseById ~/Frontend/AJAX/BaileyWeb.University.Data.GetCourseById.ashx?CourseId=aad99093-af2b-45df-af13-1391b98c8f15
BaileyWeb.University.Data.GetModuleById ~/Frontend/AJAX/BaileyWeb.University.Data.GetModuleById.ashx?ModuleId=e52d9725-77d0-45d8-a274-3c9e3f037df6
BaileyWeb.University.Data.GetSubjectById ~/Frontend/AJAX/BaileyWeb.University.Data.GetSubjectById.ashx?SubjectId=3f02d49a-e1ea-4173-9c11-7c14d4ee14c8
BaileyWeb.University.Data.SearchCourses ~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchCourseTitle=English
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchCourseCode=BA%20ENLT
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchStartDate=2017-12-27
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchAward=BA%20(Hons)
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchAwardMode=Single
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchEducationLevel=Master's%20Degree
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchSubjects=Drama Searches Subject1 and Subject2 names.
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchAcademicDepartments=Humanities%20and%20Law Searches Subject1 and Subject2 academic departments.
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchMainLocation=Bath  
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchStudyModeFullTime=true Implied from CourseLengthFullTime string length.
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchStudyModePartTime=true Implied from CourseLengthPartTime string length.
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchStudyModeDistance=true Implied from CourseLengthDistance string length.
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchStudyAbroad=true
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchStudyWorkBased=true
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?SearchStudyCPD=true
~/Frontend/AJAX/BaileyWeb.University.Data.SearchCourses.ashx?q=English Alternate for SearchCourseTitle=English.
... or any combination of the above.
BaileyWeb.University.Data.SearchModules ~/Frontend/AJAX/BaileyWeb.University.Data.SearchModules.ashx
~/Frontend/AJAX/BaileyWeb.University.Data.SearchModules.ashx?SearchModuleTitle=English
~/Frontend/AJAX/BaileyWeb.University.Data.SearchModules.ashx?SearchModuleCode=MA%20DRAM
~/Frontend/AJAX/BaileyWeb.University.Data.SearchModules.ashx?SearchEducationLevel=Master's%20Degree
~/Frontend/AJAX/BaileyWeb.University.Data.SearchModules.ashx?SearchAcademicDepartment=Humanities%20and%20Law
~/Frontend/AJAX/BaileyWeb.University.Data.SearchModules.ashx?SearchLocations=Bath
... or any combination of the above.
BaileyWeb.University.Data.SearchSubjects ~/Frontend/AJAX/BaileyWeb.University.Data.SearchSubjects.ashx
~/Frontend/AJAX/BaileyWeb.University.Data.SearchSubjects.ashx?SearchModuleTitle=English
~/Frontend/AJAX/BaileyWeb.University.Data.SearchSubjects.ashx?SearchSubjectCode=EN1001
~/Frontend/AJAX/BaileyWeb.University.Data.SearchSubjects.ashx?SearchEducationLevel=Bachelor's%20Degree
... or any combination of the above.