summaryrefslogtreecommitdiff
path: root/server/src/api_model.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-02-01 22:52:56 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-02-01 22:52:56 +0100
commit85e6c3ae1f4315138bbd68feb5bb7cebc24f6ae2 (patch)
treebcaf27055e35c4335f99e68e70e2eb46ede9745e /server/src/api_model.rs
parentd780391408b9e6d443e5e4f907748cae484b79fb (diff)
Include branch in project/reviews response
But also add /review endpoint that takes an id. So you can get review data with either the reviewid or the branchname.
Diffstat (limited to 'server/src/api_model.rs')
-rw-r--r--server/src/api_model.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/api_model.rs b/server/src/api_model.rs
index f062935..dbb42d8 100644
--- a/server/src/api_model.rs
+++ b/server/src/api_model.rs
@@ -111,6 +111,8 @@ pub struct ReviewEntry {
pub state: ReviewState,
#[schema(example = 37.5)]
pub progress: f32,
+ #[schema(example = "r/user/TASK-123456")]
+ pub branch: String,
}
#[derive(Deserialize, Serialize, ToSchema)]