use canapi::Endpoint; #[derive(Clone, Default, Serialize, Deserialize)] pub struct PostEndpoint { pub id: Option, pub title: Option, pub subtitle: Option, pub content: Option, pub source: Option, pub author: Option, pub blog_id: Option, pub published: Option, pub creation_date: Option, pub license: Option, pub tags: Option>, pub cover_id: Option, } api!("/api/v1/posts" => PostEndpoint);