You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @Description "Returns sections matching both course and professor criteria from the combined trends collection. Specialized high-speed convenience endpoint for UTD Trends internal use; limited query flexibility."
46
+
// @Produce json
47
+
// @Param course_number query string true "The course's official number"
48
+
// @Param subject_prefix query string true "The course's subject prefix"
49
+
// @Param first_name query string true "The professor's first name"
50
+
// @Param last_name query string true "The professor's last name"
51
+
// @Success 200 {object} schema.APIResponse[[]schema.Section] "A list of Sections"
52
+
// @Failure 500 {object} schema.APIResponse[string] "A string describing the error"
53
+
funcTrendsCombinedSectionSearch(c*gin.Context) {
54
+
trendsSectionSearch("Combined", c)
55
+
}
56
+
42
57
// trendsSectionSearch handles trends-based section routes for both course and professor query.
43
58
// Reduce the repetitiveness of routes whose aggregation behaviors are identical.
44
59
// This is subject to change as requests might be more complex.
@@ -66,6 +81,15 @@ func trendsSectionSearch(flag string, c *gin.Context) {
Copy file name to clipboardExpand all lines: api/docs/docs.go
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -317,13 +317,46 @@ const docTemplate = `{
317
317
}
318
318
}
319
319
},
320
+
"/combined/sections/trends": {
321
+
"get": {
322
+
"description": "\"Returns sections matching both course and professor criteria from the combined trends collection. Specialized high-speed convenience endpoint for UTD Trends internal use; limited query flexibility.\"",
320
323
"/club/search": {
321
324
"get": {
322
325
"description": "\"Returns list of clubs matching the search string\"",
0 commit comments