added semester
This commit is contained in:
6 files changed
+26
-8
No files matched your search
@@ -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
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
mod semester;
|
||||
mod endpoints;
|
||||
|
||||
pub use semester::*;
|
||||
pub use endpoints::*;
|
||||
File renamed without changes.
Reference in new issue
Block a user