Class CourseController
java.lang.Object
edu.ucsb.cs156.happiercows.controllers.ApiController
edu.ucsb.cs156.happiercows.controllers.CourseController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method returns a list of all courses.deleteCourse(Long id) getCourseById(Long id) postCourse(String code, String name, String term) updateCourse(Long id, @Valid Course incoming) Methods inherited from class edu.ucsb.cs156.happiercows.controllers.ApiController
genericMessage, getCurrentUser, handleBadRequest, handleGenericException
-
Constructor Details
-
CourseController
public CourseController()
-
-
Method Details
-
allCourses
This method returns a list of all courses.- Returns:
- a list of all courses
-
postCourse
-
getCourseById
-
updateCourse
-
deleteCourse
-