Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
httpd: Use camelCase in query params
Rūdolfs Ošiņš committed 3 years ago
commit da96a82fc1f74168c6bf5f361febbb97f1eee678
parent 3f0141b087462d1f96a3a1432de5811c2dafba1a
2 files changed +2 -2
modified radicle-httpd/src/api.rs
@@ -109,7 +109,7 @@ async fn root_handler() -> impl IntoResponse {
}

#[derive(Serialize, Deserialize, Clone)]
-
#[serde(rename_all = "kebab-case")]
+
#[serde(rename_all = "camelCase")]
pub struct PaginationQuery {
    pub page: Option<usize>,
    pub per_page: Option<usize>,
modified radicle-httpd/src/api/v1/projects.rs
@@ -114,7 +114,7 @@ async fn project_handler(State(ctx): State<Context>, Path(id): Path<Id>) -> impl
}

#[derive(Serialize, Deserialize, Clone)]
-
#[serde(rename_all = "kebab-case")]
+
#[serde(rename_all = "camelCase")]
pub struct CommitsQueryString {
    pub parent: Option<String>,
    pub since: Option<i64>,