- Description: Register a new user (e.g., student, teacher, administrator).
- Request body:
- username: [string] (required)
- email: [string] (required)
- password: [string] (required)
- userType: [string] (required)
- Response: 200 OK
- Description: Log in an existing user.
- Request body:
- username: [string] (required)
- password: [string] (required)
- Response: 200 OK
- Description: Log out the current user.
- Response: 200 OK
- Description: Submit new feedback (accessible to students).
- Request body:
- course: [string] (required)
- instructor: [string] (required)
- rating: [number] (required)
- comments: [string]
- Response: 201 Created
- Description: Retrieve all feedback (accessible to teachers and administrators).
- Response: 200 OK
- Description: Retrieve a specific feedback by ID (accessible to teachers and administrators).
- Response: 200 OK
- Description: Update a specific feedback by ID (accessible to teachers and administrators).
- Request body:
- course: [string]
- instructor: [string]
- rating: [number]
- comments: [string]
- Response: 200 OK
- Description: Delete a specific feedback by ID (accessible to teachers and administrators).
- Response: 200 OK
- Description: Get the average rating for all courses or instructors (accessible to teachers and administrators).
- Response: 200 OK
- Description: Get a list of popular courses based on feedback counts (accessible to teachers and administrators).
- Response: 200 OK
- Description: Get a list of popular instructors based on feedback counts (accessible to teachers and administrators).
- Response: 200 OK
- The
Usermodel represents a user of the system. - Properties:
username: [string] (required) - The username of the user.email: [string] (required) - The email of the user.password: [string] (required) - The password of the user.userType: [string] (required) - The type of user (e.g., student, teacher, administrator).
- The
Feedbackmodel represents the feedback submitted by students. - Properties:
instructor: [string] (required) - The instructor associated with the course.rating: [number] (required) - The rating given by the student for the course.comments: [string] - Additional comments provided by the student.
- Student can join the group for communications reagrding the review .