Skip to content

Commit

Permalink
fix parameter requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
raffifasaro committed Jan 3, 2025
1 parent fc7b481 commit 1812260
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/de/tum/cit/aet/artemis/lti/web/LtiResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ public ResponseEntity<OnlineCourseConfiguration> updateOnlineCourseConfiguration
// TODO Deep Linking 1
@PostMapping("lti13/deep-linking/{courseId}")
@EnforceAtLeastInstructor
public ResponseEntity<String> lti13DeepLinking(@PathVariable Long courseId, @RequestParam(name = "exerciseIds") Set<Long> exerciseIds,
@RequestParam(name = "lectureIds") Set<Long> lectureIds, @RequestParam(name = "competency") boolean competency, @RequestParam(name = "ltiIdToken") String ltiIdToken,
@RequestParam(name = "learningPath") boolean learningPath, @RequestParam(name = "iris") boolean iris,
@RequestParam(name = "clientRegistrationId") String clientRegistrationId) throws ParseException {
public ResponseEntity<String> lti13DeepLinking(@PathVariable Long courseId, @RequestParam(name = "exerciseIds", required = false) Set<Long> exerciseIds,
@RequestParam(name = "lectureIds", required = false) Set<Long> lectureIds, @RequestParam(name = "competency", required = false) boolean competency,
@RequestParam(name = "learningPath", required = false) boolean learningPath, @RequestParam(name = "iris", required = false) boolean iris,
@RequestParam(name = "ltiIdToken") String ltiIdToken, @RequestParam(name = "clientRegistrationId") String clientRegistrationId) throws ParseException {
// TODO update message
log.info("LTI 1.3 Deep Linking request received for course {} with exercises {} for registrationId {}", courseId, exerciseIds, clientRegistrationId);

Expand Down

0 comments on commit 1812260

Please sign in to comment.