Closed ahmedradwan21 closed 2 months ago
Description: Develop an endpoint to fetch all course details (name, description, instructor, etc.) for users to view before registering.
Expected Endpoints:
GET /courses/:courseId/details
Updated Model: Course
Course
id
name
description
educator_id
User
lectures_count
created_at
updated_at
what is the diffrence between this route and the getCourseByid route implemented with the course crud operation, I see that it is pretty much the same
Description:
Develop an endpoint to fetch all course details (name, description, instructor, etc.) for users to view before registering.
Expected Endpoints:
GET /courses/:courseId/details
Purpose: Retrieve complete details of a course.
Updated Model:
Course
id
(UUID, Primary Key)name
(String)description
(Text)educator_id
(Foreign Key, ReferencesUser
)lectures_count
(Integer)created_at
(Timestamp)updated_at
(Timestamp)