• Sends a POST request to calculate new ratings in the backend.

    This service function sends an HTTP request to calculate a new student and learning element rating using the backend API.

    Parameters

    • Optional userId: number

      The ID of the user.

    • Optional courseId: string

      The ID of the course.

    • Optional topicId: string

      The ID of the topic.

    • Optional learningElementId: number

      The ID of the learning element.

    Returns Promise<{
        learningElementRating: LearningElementRating;
        studentRating: StudentRating;
    }>

    An object containing the new rating of the student and learning element.

    Example

    const { studentRating, learningElementRating } = await postCalculateRating(userId, courseId, topicId, learningElementId)
    

Generated using TypeDoc