From 2c2a63e80b6e21f53bd79e7fa9fb037b9d834dd4 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 28 Apr 2025 21:55:23 -0400 Subject: [PATCH] nit: fix metadata --- .../enqueue_studio_image_generation_handler.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/image_studio/prompt/enqueue_studio_image_generation_handler.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/image_studio/prompt/enqueue_studio_image_generation_handler.rs index d2b6918f6a..1d14bafd07 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/image_studio/prompt/enqueue_studio_image_generation_handler.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/image_studio/prompt/enqueue_studio_image_generation_handler.rs @@ -142,18 +142,16 @@ impl Display for EnqueueImageGenRequestError { post, tag = "Image Studio", path = "/v1/image_studio/prompt", + params( + ("request" = EnqueueStudioImageGenRequest, description = "Payload for Image Generation Request"), + ), responses( - ( - status = 200, - description = "Enqueue TTS generically", - body = EnqueueImageGenRequestSuccessResponse, - ), - (status = 400, description = "Bad input", body = EnqueueImageGenRequestError), - (status = 401, description = "Not authorized", body = EnqueueImageGenRequestError), - (status = 429, description = "Rate limited", body = EnqueueImageGenRequestError), - (status = 500, description = "Server error", body = EnqueueImageGenRequestError) + (status = 200, description = "Success response", body = EnqueueImageGenRequestSuccessResponse), + (status = 400, description = "Bad input", body = EnqueueImageGenRequestError), + (status = 401, description = "Not authorized", body = EnqueueImageGenRequestError), + (status = 429, description = "Rate limited", body = EnqueueImageGenRequestError), + (status = 500, description = "Server error", body = EnqueueImageGenRequestError), ), - params(("request" = EnqueueStudioImageGenRequest, description = "Payload for Image Generation Request")) )] pub async fn enqueue_studio_image_generation_handler(http_request: HttpRequest, request: Json, server_state: Data>) -> Result { validate_request(&request)?;