Add search endpoint
Summary
We need to add a search endpoint to the API that will allow users to eventually search for classes and sections from the homepage. The endpoint should be a new controller accessible via a GET
request under /api/search
and should return a JSON body consisting of all courses and schedules who's names, CRNs, or professors matched the search term.
Helpful Links
- Rails namespacing for moving API root.
- rails generate for generating a new controller.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information