Delete scheduled message event endpoint #19

Merged
phoenix merged 8 commits from delete_scheduled_message_event_endpoint into alot_of_changes 2026-06-19 16:02:53 -04:00
Showing only changes of commit 8626b383ba - Show all commits
+26
View File
@@ -67,6 +67,8 @@ pub mod response {
}
pub use CreateScheduleMessageEventResponse as GetScheduledMessageEventResponse;
pub use CreateScheduleMessageEventResponse as DeleteScheduledMessageEventResponse;
}
pub mod endpoint {
@@ -355,4 +357,28 @@ pub mod endpoint {
(axum::http::StatusCode::OK, axum::Json(response))
}
/// Endpoint to delete the Scheduled Message Event
#[utoipa::path(
delete,
path = crate::caller::endpoints::DELETE_SCHEDULED_MESSAGE_EVENT,
params(("id" = uuid::Uuid, Path, description = "Scheduled Message Event Id")),
responses(
(status = 200, description = "Song deleted", body = super::response::DeleteScheduledMessageEventResponse),
(status = 404, description = "Song not found", body = super::response::DeleteScheduledMessageEventResponse),
(status = 500, description = "Error deleting song", body = super::response::DeleteScheduledMessageEventResponse)
)
)]
pub async fn delete_scheduled_message_event(
axum::Extension(pool): axum::Extension<sqlx::PgPool>,
axum::extract::Path(id): axum::extract::Path<uuid::Uuid>,
) -> (
axum::http::StatusCode,
axum::Json<super::response::DeleteScheduledMessageEventResponse>,
) {
let response = super::response::DeleteScheduledMessageEventResponse::default();
todo!("Has not been implemented");
(axum::http::StatusCode::NOT_IMPLEMENTED, axum::Json(response))
}
}