diff --git a/api/docs/docs.go b/api/docs/docs.go index 632f54f..150144e 100644 --- a/api/docs/docs.go +++ b/api/docs/docs.go @@ -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\"", @@ -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": { @@ -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": { @@ -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": { @@ -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": {