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 all the sections of all the courses matching the query's string-typed key-value pairs"
142
+
// @Description "Returns paginated list of sections of all the courses matching the query's string-typed key-value pairs. See former_offset and latter_offset for pagination details."
143
143
// @Produce json
144
+
// @Param former_offset query number false "The starting position of the current page of courses (e.g. For starting at the 17th course, former_offset=16)."
145
+
// @Param latter_offset query number false "The starting position of the current page of sections (e.g. For starting at the 4th section, latter_offset=3)."
144
146
// @Param course_number query string false "The course's official number"
145
147
// @Param subject_prefix query string false "The course's subject prefix"
146
148
// @Param title query string false "The course's title"
@@ -243,6 +245,9 @@ func courseSection(flag string, c *gin.Context) {
// @Description "Returns all of the courses of all the professors matching the query's string-typed key-value pairs"
151
+
// @Description "Returns paginated list of the courses of all the professors matching the query's string-typed key-value pairs. See former_offset and latter_offset for pagination details."
152
152
// @Produce json
153
+
// @Param former_offset query number false "The starting position of the current page of professors (e.g. For starting at the 17th professor, former_offset=16)."
154
+
// @Param latter_offset query number false "The starting position of the current page of courses (e.g. For starting at the 4th course, latter_offset=3)."
153
155
// @Param first_name query string false "The professor's first name"
154
156
// @Param last_name query string false "The professor's last name"
155
157
// @Param titles query string false "One of the professor's title"
@@ -252,6 +254,9 @@ func professorCourse(flag string, c *gin.Context) {
252
254
// replace the combination of ids and courses with the courses entirely
@@ -275,8 +280,10 @@ func professorCourse(flag string, c *gin.Context) {
275
280
276
281
// @Id professorSectionSearch
277
282
// @Router /professor/sections [get]
278
-
// @Description "Returns all of the sections of all the professors matching the query's string-typed key-value pairs"
283
+
// @Description "Returns paginated list of the sections of all the professors matching the query's string-typed key-value pairs. See former_offset and latter_offset for pagination details."
279
284
// @Produce json
285
+
// @Param former_offset query number false "The starting position of the current page of professors (e.g. For starting at the 17th professor, former_offset=16)."
286
+
// @Param latter_offset query number false "The starting position of the current page of sections (e.g. For starting at the 4th section, latter_offset=3)."
280
287
// @Param first_name query string false "The professor's first name"
281
288
// @Param last_name query string false "The professor's last name"
282
289
// @Param titles query string false "One of the professor's title"
@@ -368,6 +375,9 @@ func professorSection(flag string, c *gin.Context) {
368
375
// replace the combination of ids and sections with the sections entirely
"description": "\"Returns an aggregation of courses for use in generating autocomplete DAGs\"",
@@ -137,12 +166,24 @@ const docTemplate = `{
137
166
},
138
167
"/course/sections": {
139
168
"get": {
140
-
"description": "\"Returns all the sections of all the courses matching the query's string-typed key-value pairs\"",
169
+
"description": "\"Returns paginated list of sections of all the courses matching the query's string-typed key-value pairs. See former_offset and latter_offset for pagination details.\"",
141
170
"produces": [
142
171
"application/json"
143
172
],
144
173
"operationId": "courseSectionSearch",
145
174
"parameters": [
175
+
{
176
+
"type": "number",
177
+
"description": "The starting position of the current page of courses (e.g. For starting at the 17th course, former_offset=16).",
178
+
"name": "former_offset",
179
+
"in": "query"
180
+
},
181
+
{
182
+
"type": "number",
183
+
"description": "The starting position of the current page of sections (e.g. For starting at the 4th section, latter_offset=3).",
184
+
"name": "latter_offset",
185
+
"in": "query"
186
+
},
146
187
{
147
188
"type": "string",
148
189
"description": "The course's official number",
@@ -655,12 +696,24 @@ const docTemplate = `{
655
696
},
656
697
"/professor/courses": {
657
698
"get": {
658
-
"description": "\"Returns all of the courses of all the professors matching the query's string-typed key-value pairs\"",
699
+
"description": "\"Returns paginated list of the courses of all the professors matching the query's string-typed key-value pairs. See former_offset and latter_offset for pagination details.\"",
659
700
"produces": [
660
701
"application/json"
661
702
],
662
703
"operationId": "professorCourseSearch",
663
704
"parameters": [
705
+
{
706
+
"type": "number",
707
+
"description": "The starting position of the current page of professors (e.g. For starting at the 17th professor, former_offset=16).",
708
+
"name": "former_offset",
709
+
"in": "query"
710
+
},
711
+
{
712
+
"type": "number",
713
+
"description": "The starting position of the current page of courses (e.g. For starting at the 4th course, latter_offset=3).",
714
+
"name": "latter_offset",
715
+
"in": "query"
716
+
},
664
717
{
665
718
"type": "string",
666
719
"description": "The professor's first name",
@@ -797,12 +850,24 @@ const docTemplate = `{
797
850
},
798
851
"/professor/sections": {
799
852
"get": {
800
-
"description": "\"Returns all of the sections of all the professors matching the query's string-typed key-value pairs\"",
853
+
"description": "\"Returns paginated list of the sections of all the professors matching the query's string-typed key-value pairs. See former_offset and latter_offset for pagination details.\"",
801
854
"produces": [
802
855
"application/json"
803
856
],
804
857
"operationId": "professorSectionSearch",
805
858
"parameters": [
859
+
{
860
+
"type": "number",
861
+
"description": "The starting position of the current page of professors (e.g. For starting at the 17th professor, former_offset=16).",
862
+
"name": "former_offset",
863
+
"in": "query"
864
+
},
865
+
{
866
+
"type": "number",
867
+
"description": "The starting position of the current page of sections (e.g. For starting at the 4th section, latter_offset=3).",
0 commit comments