added semester

This commit is contained in:
vextrixes committed 2026-10-31 02:37:56 +01:00
1 parent 1d1b7a30f3
commit b3e6c145a3
6 files changed
+26 -8

No files matched your search

+3 -3
View File
@@ -2,7 +2,7 @@ use std::marker::PhantomData;
use crate::{Endpoint, HomeworkList};
pub const HOMEWORKS_COUNT_ENDPOINT: Endpoint<(), i64> = Endpoint::Get {
pub const HOMEWORKS_COUNT_ENDPOINT: Endpoint<i64, ()> = Endpoint::Get {
url: "/api/3/homeworks/count-actual",
auth: true,
_types: PhantomData,
@@ -10,14 +10,14 @@ pub const HOMEWORKS_COUNT_ENDPOINT: Endpoint<(), i64> = Endpoint::Get {
/// ID = homework ID (String)
/// finished = homework state (bool)
pub const HOMEWORK_DONE_ENDPOINT: Endpoint<(), bool> = Endpoint::Get {
pub const HOMEWORK_DONE_ENDPOINT: Endpoint<bool, ()> = Endpoint::Get {
url: "api/3/homeworks/{id}/student-done/{finished}",
auth: true,
_types: PhantomData,
};
/// Query 'from' and 'to' (Datetime)
pub const HOMEWORKS_ENDPOINT: Endpoint<(), HomeworkList> = Endpoint::Get {
pub const HOMEWORKS_ENDPOINT: Endpoint<HomeworkList, ()> = Endpoint::Get {
url: "api/3/homeworks",
auth: true,
_types: PhantomData,
+1 -3
View File
@@ -38,9 +38,7 @@ pub use homework::*;
pub use marks::*;
pub use others::*;
pub use payments::*;
pub use semester::{
CertificateTerm, CertificateTerms, FinalMark, PedagogicalMeasure, PedagogicalMeasures,
};
pub use semester::*;
pub use stdtype::{
Room, RoomSet, SchoolClass, SchoolClassSet, StdClassGroup, StdType, StdTypeNullable, Student,
Teacher, TeacherSet, TimetableStudent,
+15
View File
@@ -0,0 +1,15 @@
use std::marker::PhantomData;
use crate::{CertificateTerms, Endpoint, PedagogicalMeasures};
pub const GET_CERTIFICATE_TERMS_ENDPOINT: Endpoint<CertificateTerms, ()> = Endpoint::Get {
url: "/api/3/marks/final",
auth: true,
_types: PhantomData,
};
pub const GET_PEDAGOGICAL_MEASURES_ENDPOINT: Endpoint<PedagogicalMeasures, ()> = Endpoint::Get {
url: "/api/3/marks/measures",
auth: true,
_types: PhantomData,
};
+5
View File
@@ -0,0 +1,5 @@
mod semester;
mod endpoints;
pub use semester::*;
pub use endpoints::*;
File renamed without changes.
+2 -2
View File
@@ -44,7 +44,7 @@
- [x] /api/3/payments/classfund
- [ ] /api/3/gdpr/consents/person/child
- [ ] /api/3/komens/concept/:conceptId
- [ ] /api/3/marks/measures
- [x] /api/3/marks/measures
- [ ] /api/3/unregister-user-notification
- [ ] /api/3/gdpr/consent/:id/agree
- [x] /api/3/marks/count-new
@@ -66,7 +66,7 @@
- [ ] /api/3/gdpr/commissioner/send-report
- [ ] /api/3/komens/message/:messageId/mark-as-unhidden
- [ ] /api/3/lesson/:lessonId/studentsTimetable
- [ ] /api/3/marks/final
- [x] /api/3/marks/final
- [x] /api/3/timetable/student/:studentId
- [ ] /api/3/marking/atom/:atomId/headerOptions
- [ ] /api/3/gdpr/consent/:id/disagree