Skip to content

Commit

Permalink
Changed the time for CourseAll and Professor, Attempted to test funct…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
armansarder committed Nov 8, 2024
1 parent bbb9ff9 commit db0e70f
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions api/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ const docTemplate = `{
"host": "{{.Host}}",
"basePath": "{{.BasePath}}",
"paths": {
"/autocomplete/dag": {
"get": {
"description": "\"Returns an aggregation of courses for use in generating autocomplete DAGs\"",
"produces": [
"application/json"
],
"operationId": "autocompleteDAG",
"responses": {
"200": {
"description": "An aggregation of courses for use in generating autocomplete DAGs",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/schema.Autocomplete"
}
}
}
}
}
},
"/course": {
"get": {
"description": "\"Returns all courses matching the query's string-typed key-value pairs\"",
Expand Down Expand Up @@ -636,6 +656,20 @@ const docTemplate = `{
}
}
},
"schema.AcademicSessionSections": {
"type": "object",
"properties": {
"academic_session": {
"$ref": "#/definitions/schema.SimpleAcademicSession"
},
"sections": {
"type": "array",
"items": {
"$ref": "#/definitions/schema.SectionNumberProfessors"
}
}
}
},
"schema.Assistant": {
"type": "object",
"properties": {
Expand All @@ -653,6 +687,20 @@ const docTemplate = `{
}
}
},
"schema.Autocomplete": {
"type": "object",
"properties": {
"course_numbers": {
"type": "array",
"items": {
"$ref": "#/definitions/schema.CourseNumberAcademicSessions"
}
},
"subject_prefix": {
"type": "string"
}
}
},
"schema.CollectionRequirement": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -740,6 +788,20 @@ const docTemplate = `{
}
}
},
"schema.CourseNumberAcademicSessions": {
"type": "object",
"properties": {
"academic_sessions": {
"type": "array",
"items": {
"$ref": "#/definitions/schema.AcademicSessionSections"
}
},
"course_number": {
"type": "string"
}
}
},
"schema.Location": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -889,6 +951,39 @@ const docTemplate = `{
}
}
}
},
"schema.SectionNumberProfessors": {
"type": "object",
"properties": {
"professors": {
"type": "array",
"items": {
"$ref": "#/definitions/schema.SimpleProfessor"
}
},
"section_number": {
"type": "string"
}
}
},
"schema.SimpleAcademicSession": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
},
"schema.SimpleProfessor": {
"type": "object",
"properties": {
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
}
}
}
},
"securityDefinitions": {
Expand Down

0 comments on commit db0e70f

Please sign in to comment.