added teaching endpoints
This commit is contained in:
6 files changed
+21
-6
No files matched your search
@@ -11,12 +11,12 @@ 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 {
|
||||
url: "api/3/homeworks/:id/student-done/:finished",
|
||||
url: "api/3/homeworks/{id}/student-done/{finished}",
|
||||
auth: true,
|
||||
_types: PhantomData,
|
||||
};
|
||||
|
||||
/// Query from and to (Datetime)
|
||||
/// Query 'from' and 'to' (Datetime)
|
||||
pub const HOMEWORKS_ENDPOINT: Endpoint<(), HomeworkList> = Endpoint::Get {
|
||||
url: "api/3/homeworks",
|
||||
auth: true,
|
||||
|
||||
+1
-1
@@ -49,6 +49,6 @@ pub use subjects::*;
|
||||
pub use substitutions::{
|
||||
ChangeDisplayType, ChangeLessonInfo, SubstitutionChange, SubstitutionChangeType, Substitutions,
|
||||
};
|
||||
pub use teaching::{Lesson, Teaching, TeachingTheme};
|
||||
pub use teaching::*;
|
||||
pub use timetable::*;
|
||||
pub use user::*;
|
||||
@@ -0,0 +1,10 @@
|
||||
use std::marker::PhantomData;
|
||||
|
||||
use crate::{Endpoint, Teaching};
|
||||
|
||||
/// Subject ID = String
|
||||
pub const TEACHING_ENDPOINT: Endpoint<(), Teaching> = Endpoint::Get {
|
||||
url: "/api/3/subjects/themes/{subjectId}",
|
||||
auth: true,
|
||||
_types: PhantomData,
|
||||
};
|
||||
@@ -0,0 +1,5 @@
|
||||
mod endpoints;
|
||||
mod teaching;
|
||||
|
||||
pub use endpoints::*;
|
||||
pub use teaching::*;
|
||||
File renamed without changes.
+3
-3
@@ -40,7 +40,7 @@
|
||||
- [ ] /api/3/payments/classfund/teacher/document/detail/:documentId
|
||||
- [ ] /api/3
|
||||
- [ ] /api/3/komens/attachment/:id
|
||||
- [ ] /api/3/subjects/themes/:subjectId
|
||||
- [x] /api/3/subjects/themes/:subjectId
|
||||
- [ ] /api/3/payments/classfund
|
||||
- [ ] /api/3/gdpr/consents/person/child
|
||||
- [ ] /api/3/komens/concept/:conceptId
|
||||
@@ -87,7 +87,7 @@
|
||||
- [ ] /api/3/absence
|
||||
- [ ] /api/3/komens/message/:messageId/mark-as-confirmed
|
||||
- [ ] /api/3/komens/messages/apology
|
||||
- [ ] /api/3/events
|
||||
- [x] /api/3/events
|
||||
- [ ] /api/3/komens/concepts/count
|
||||
- [ ] /api/3/payments/regularpayments/teacher/prescriptions/:prescriptionId/students
|
||||
- [ ] /api/3/payments/regularpayments
|
||||
@@ -104,7 +104,7 @@
|
||||
- [ ] /api/3/emergency/participantsselection
|
||||
- [ ] /api/3/komens/messages/noticeboard/unread
|
||||
- [ ] /api/3/komens/message-types
|
||||
- [ ] /api/3/events/my
|
||||
- [x] /api/3/events/my
|
||||
- [ ] /api/3/gdpr/commissioners
|
||||
- [ ] /api/3/classbook/:recordId
|
||||
- [ ] /api/3/marking/marks/:atomId
|
||||
|
||||
Reference in new issue
Block a user