Skip to content

Commit

Permalink
add missing javadoc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
asliayk committed Feb 20, 2025
1 parent 565c285 commit 382fee3
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ public ResponseEntity<Void> deleteAnswerMessage(@PathVariable Long courseId, @Pa
return ResponseEntity.ok().build();
}

/**
* GET /communication/courses/{courseId}/answer-messages-source-posts : Retrieve source answer posts by their IDs
*
* @param courseId id of the course the answer posts belong to
* @param answerPostIds list of answer post IDs to retrieve
* @return ResponseEntity with status 200 (OK) containing the list of found answer posts,
* 400 (Bad Request) if the provided list is null or empty,
* or 404 (Not Found) if no matching answer posts are found
* @throws BadRequestAlertException if the provided answer post IDs are null, empty, or belong to a different course
*/
@GetMapping("communication/courses/{courseId}/answer-messages-source-posts")
@EnforceAtLeastStudentInCourse
public ResponseEntity<List<AnswerPost>> getSourceAnswerPostsByIds(@PathVariable Long courseId, @RequestParam List<Long> answerPostIds) {
Expand Down

0 comments on commit 382fee3

Please sign in to comment.