Documentation ¶
Index ¶
- func Get(ctx *gin.Context, DB db.Database, sub *controllers.Subject)
- func GetCourses(ctx *gin.Context, DB db.Database, institute *controllers.Institute)
- func GetInstitutes(ctx *gin.Context, DB db.Database)
- func GetOfferingComments(ctx *gin.Context, DB db.Database, off *controllers.Offering)
- func GetOfferingsWithStats(ctx *gin.Context, DB db.Database, sub *controllers.Subject)
- func GetProfessors(ctx *gin.Context, DB db.Database, institute *controllers.Institute)
- func GetRelations(ctx *gin.Context, DB db.Database, sub *controllers.Subject)
- func GetSiblingSubjects(ctx *gin.Context, DB db.Database, sub *controllers.Subject)
- func GetStats(ctx *gin.Context, DB db.Database)
- func ListSubjectsByCourse(ctx *gin.Context, DB db.Database, controller *controllers.Course)
- func SearchSubjects(ctx *gin.Context, DB db.Database, controller *controllers.InstituteCourse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get gets a subject by its identifier: subject code, course code and course specialization code
func GetCourses ¶
GetCourses gets all course codes from a given institute the database
func GetInstitutes ¶
GetInstitutes gets all institutes from the database
func GetOfferingComments ¶ added in v1.6.0
GetOfferingComments retrieves the comments made so far for a given offering
func GetOfferingsWithStats ¶ added in v1.6.0
GetOfferingsWithStats retrieves a list of offerings for a given subject, along with the comment stats associated with them
It is a closure for the GET /api/restricted/offerings endpoint
func GetProfessors ¶ added in v1.5.5
GetProfessors gets all course codes from a given institute the database
func GetRelations ¶
GetRelations gets the subject's graph: their direct predecessors and successors
func GetSiblingSubjects ¶ added in v1.5.9
GetSiblingSubjects gets the subject's siblings: Subjects with same institute, course, specialization and semester
func ListSubjectsByCourse ¶ added in v1.6.1
ListSubjectsByCourse gets all subjects from a given course in the database
It differs from SearchSubjects because it does not take an institute parameter
func SearchSubjects ¶ added in v1.6.1
func SearchSubjects(ctx *gin.Context, DB db.Database, controller *controllers.InstituteCourse)
SearchSubjects gets all subjects from a given course in the database
This differs from SubjectsByCourseIdentifier because it uses the institute to find the course
Types ¶
This section is empty.