codeforcauseorg / edu-server

MIT License
42 stars 52 forks source link

add extra feilds that will be needed in the course schema and dtos for client side integration #100

Closed Devesh21700Kumar closed 3 years ago

Devesh21700Kumar commented 3 years ago

Add extra fields that will be needed in the course schema and dtos for client side integration:-

1). tags with its enums 2). courseDetails 3). courseLevel 4). courseThumbnail 5). courseTrailerUrl

Also added the review schema and its dtos and its create, update and delete endpoints with its enums for training field

image

Devesh21700Kumar commented 3 years ago

@Abhishek-kumar09 the extra fields that will be required have been added along with the review endpoints

Devesh21700Kumar commented 3 years ago

Please add swagger response body for this PR.

ok

Devesh21700Kumar commented 3 years ago

Please add swagger response body for this PR.

There is no option to get all the reviews on a course. Add a get request that fetches all the review for a course.

@Abhishek-kumar09 The reviews are populated in the getall courses in the reviews object and also in the getcoursebyId endpoint in the reviews object

Devesh21700Kumar commented 3 years ago

So with this, all reviews will be available for that course.

Devesh21700Kumar commented 3 years ago

@Abhishek-kumar09 the changes have been made

Devesh21700Kumar commented 3 years ago

@Abhishek-kumar09 courseLevel converted to enum type and @Isenum prop added to both and tags converted to array

Devesh21700Kumar commented 3 years ago

@Abhishek-kumar09 added swagger for the new routes and merged conflcts