summaryrefslogtreecommitdiff
path: root/src/api/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/mod.rs')
-rw-r--r--src/api/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/api/mod.rs b/src/api/mod.rs
index 2a7c3a8..fc97f47 100644
--- a/src/api/mod.rs
+++ b/src/api/mod.rs
@@ -1,5 +1,6 @@
use actix_web::{web, HttpResponse, Scope};
use serde::{Deserialize, Serialize};
+use utoipa::ToSchema;
pub mod album;
pub mod artist;
@@ -24,9 +25,10 @@ pub fn api_scope() -> Scope {
.service(search_results::search_results)
}
-#[derive(Serialize, Deserialize)]
+#[derive(Serialize, Deserialize, ToSchema)]
pub struct Response {
- message: String,
+ #[schema(default = "response")]
+ pub message: String,
}
pub fn get_response_from_query(