We want to build an endpoint that allows a user to join a course as a learner. The course data can be sorted in ascending alphabetical order based on the course name.
Steps
Build an endpoint that returns all courses that a user can join based on a search value value. The endpoint should return all of the information about a course that is found in MongoDB, except the admin_id and approved fields.
Don't forget to:
Make sure to add the appropriate middleware for checking if the client requesting this endpoint can access the courses.
Write Jest Unit Tests!!! I would test a couple of the scenarios listed in the Example API Calls with our Mock Database.
Goals
We want to build an endpoint that allows a user to join a course as a learner. The course data can be sorted in ascending alphabetical order based on the course name.
Steps
admin_id
andapproved
fields.Don't forget to:
Resources