• Sends a GET request to fetch all student ratings from the backend.

    This service function sends an HTTP request to retrieve all student ratings from the database using the backend API. Returns an empty array if no ratings are present.

    Parameters

    • studentId: number

      The id of the student.

    • topicId: number

    Returns Promise<StudentRating[]>

    Throws

    If either userId or studentId is not provided.

    Example

    const studentRatings = await fetchStudentRatings(userId, studentId)
    

Generated using TypeDoc