Delete scheduled message event endpoint #19
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user