From 2eaede9f0be6feea252fd49fa2b33350aaa61de9 Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Fri, 23 May 2025 15:56:24 -0400 Subject: [PATCH] Added endpoint to create metadata --- src/callers/metadata.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/callers/metadata.rs b/src/callers/metadata.rs index 253023f..841a4f5 100644 --- a/src/callers/metadata.rs +++ b/src/callers/metadata.rs @@ -66,6 +66,13 @@ pub mod response { pub data: Vec, } } + + pub mod create_metadata { + #[derive(Default, serde::Deserialize, serde::Serialize)] + pub struct Response { + pub message: String, + } + } } pub mod metadata_queue { @@ -271,4 +278,12 @@ pub mod endpoint { }, } } + + // TODO: Implement + pub async fn create_metadata( + ) -> (axum::http::StatusCode, axum::Json) { + let mut response = super::response::create_metadata::Response::default(); + + (axum::http::StatusCode::OK, axum::Json(response)) + } }