added timetable endpoints

This commit is contained in:
vextrixes committed 2026-10-31 23:57:36 +01:00
1 parent 16cc34d2a7
commit 2f86b90cda
4 files changed
+35 -1

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ mod subjects;
mod substitutions;
mod teaching;
mod timetable;
mod user; //TODOS
mod user;
//webmodules
//predictor
+29
View File
@@ -0,0 +1,29 @@
use std::marker::PhantomData;
use crate::{Endpoint, Timetable};
pub const PERNAMENT_TIMETABLE_ENDPOINT: Endpoint<Timetable, ()> = Endpoint::Get {
url: "/api/3/timetable/permanent",
auth: true,
_types: PhantomData,
};
pub const PERNAMENT_TIMETABLE_CLASS_ENDPOINT: Endpoint<Timetable, ()> = Endpoint::Get {
url: "/api/3/timetable/permanent/class/{classId}",
auth: true,
_types: PhantomData,
};
pub const WEEK_TIMETABLE_ENDPOINT: Endpoint<Timetable, ()> = Endpoint::Get {
url: "/api/3/timetable/actual",
auth: true,
_types: PhantomData,
};
pub const WEEK_TIMETABLE_CLASS_ENDPOINT: Endpoint<Timetable, ()> = Endpoint::Get {
url: "/api/3/timetable/actual/class/{classId}",
auth: true,
_types: PhantomData,
};
+5
View File
@@ -0,0 +1,5 @@
mod timetable;
mod endpoints;
pub use timetable::*;
pub use endpoints::*;
File renamed without changes.