Radish alpha
h
Radicle Heartwood Protocol & Stack
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 d40f40b9af75782dad15f83b61330b3dac4ed232
parent ed1120f3eb4b25aa416afbaa4f14b90ff10f396e
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>,