Add OpenAPI docs
This commit is contained in:
parent
53f1a3dcc6
commit
d5a5367e1e
5 changed files with 51 additions and 20 deletions
|
|
@ -1,7 +1,8 @@
|
|||
use chrono::{DateTime, Utc};
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[derive(Debug, Deserialize, JsonSchema)]
|
||||
pub struct CreateDocumentVersion {
|
||||
pub created_date: DateTime<Utc>,
|
||||
pub relative_path: String,
|
||||
|
|
@ -9,7 +10,7 @@ pub struct CreateDocumentVersion {
|
|||
pub is_binary: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[derive(Debug, Deserialize, JsonSchema)]
|
||||
pub struct DeleteDocumentVersion {
|
||||
pub created_date: DateTime<Utc>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue