Skip to content

Commit

Permalink
add example when there's no radio songs
Browse files Browse the repository at this point in the history
  • Loading branch information
RubberDuckShobe committed Nov 2, 2024
1 parent 61488bf commit 3ab022c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ struct HealthCheck {
responses(
(status = OK, description = "Success",
body = HealthCheck, content_type = "application/json",
examples = (json!(r#"{ "status": "ok", "radioStatus": "2 song(s)" }"#))),
example = json!(r#"{ "status": "ok", "radioStatus": "2 song(s)" }"#)),
(status = OK, description = "Server works, Radio has no songs",
body = HealthCheck, content_type = "application/json",
example = json!(r#"{ "status": "ok", "radioStatus": "no songs" }"#)),
(status = OK, description = "Server works, but Radio is broken",
body = HealthCheck, content_type = "application/json",
example = json!(r#"{ "status": "ok", "radioStatus": "error" }"#)),
Expand Down

0 comments on commit 3ab022c

Please sign in to comment.