Teachers endpoint
findOne
Method returns an auditorium.
Example
import { Nurekit } from "nurekit";
const nurekit = new Nurekit();
const teacher = await nurekit.teachers.findOne("Боцюра О. А.");
API
const { Id, Name } = await nurekit.teachers.findOne(shortName);
Input
shortName- short name of the teacher you want to get info about (required)
Output
In output you will get an object with such fields:
Id: numberShortName: stringFullName: string
findMany
Method returns an array of teachers.
Example
import { Nurekit } from "nurekit";
const nurekit = new Nurekit();
const teachers = await nurekit.teachers.findMany();
API
const teachers = await nurekit.teachers.findMany();
Input
This method doesn’t need any arguments.
Output
In output you will get an array of objects with such fields:
id: numbershortName: stringfullName: string
getSchedule
Method returns a schedule for a teacher.
Example
import { Nurekit } from "nurekit";
const nurekit = new Nurekit();
const schedule = await nurekit.groups.getSchedule({
teacherName: "Боцюра О. А.",
startTime: "2023-09-11",
endTime: "2023-09-15",
});
API
const schedule = await nurekit.groups.getSchedule({
teacherName,
startTime,
endTime,
});
Input
teacherName: string- the short name of a teacher you want to get schedule for (required);startTime: string- start time of the period for which you want to receive the schedule (required);endTime: string- end time of the period for which you want to receive the schedule (required).
Output
In output you will get an array of objects with such fields
Id: numberStartTime: numberEndTime: numberAuditorium: stringNumberPair: numberType: stringGroups: IGroup[]Id: numberName: string
Teachers: ITeacher[]Id: numberFullName: stringShortName: string
Subject: ISubject[]Id: numberBrief: stringTitle: string