added some endpoints
This commit is contained in:
18 files changed
+254
-9
No files matched your search
@@ -0,0 +1,22 @@
|
||||
use std::marker::PhantomData;
|
||||
|
||||
use crate::{ContentType, Endpoint, Marks};
|
||||
|
||||
pub const CONFIRM_MARKS_ENDPOINT: Endpoint<(), Vec<String>> = Endpoint::Post {
|
||||
url: "/api/3/marks/SetClassificationConfirmation",
|
||||
auth: true,
|
||||
content_type: ContentType::Json,
|
||||
_types: PhantomData,
|
||||
};
|
||||
|
||||
pub const COUNT_NEW_MARKS_ENDPOINT: Endpoint<i64, ()> = Endpoint::Get {
|
||||
url: "/api/3/marks/count-new",
|
||||
auth: true,
|
||||
_types: PhantomData,
|
||||
};
|
||||
|
||||
pub const MARKS_ENDPOINT: Endpoint<Marks, ()> = Endpoint::Get {
|
||||
url: "/api/3/marks",
|
||||
auth: true,
|
||||
_types: PhantomData,
|
||||
};
|
||||
Reference in new issue
Block a user