Class CanvasService

java.lang.Object
edu.ucsb.cs156.frontiers.services.CanvasService

@Service @Validated public class CanvasService extends Object
  • Constructor Details

    • CanvasService

      public CanvasService(com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.web.client.RestClient.Builder builder)
  • Method Details

    • getCanvasRoster

      public List<RosterStudent> getCanvasRoster(@HasLinkedCanvasCourse Course course)
      Fetches the roster of students from Canvas for the given course.
      Parameters:
      course - the Course entity containing canvasApiToken and canvasCourseId
      Returns:
      list of RosterStudent objects from Canvas