From 6aee40ac9538f9391c9e630efddf4b39fdad5a50 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 17 May 2018 00:09:46 -0700 Subject: fix api spec --- rust/fatcat-api/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rust/fatcat-api/src/lib.rs') diff --git a/rust/fatcat-api/src/lib.rs b/rust/fatcat-api/src/lib.rs index 716781cb..abd68f04 100644 --- a/rust/fatcat-api/src/lib.rs +++ b/rust/fatcat-api/src/lib.rs @@ -272,7 +272,7 @@ pub trait Api { fn editgroup_id_get(&self, id: i32, context: &Context) -> Box + Send>; - fn editgroup_post(&self, context: &Context) -> Box + Send>; + fn editgroup_post(&self, body: models::Editgroup, context: &Context) -> Box + Send>; fn editor_username_changelog_get(&self, username: String, context: &Context) -> Box + Send>; @@ -313,7 +313,7 @@ pub trait ApiNoContext { fn editgroup_id_get(&self, id: i32) -> Box + Send>; - fn editgroup_post(&self) -> Box + Send>; + fn editgroup_post(&self, body: models::Editgroup) -> Box + Send>; fn editor_username_changelog_get(&self, username: String) -> Box + Send>; @@ -384,8 +384,8 @@ impl<'a, T: Api> ApiNoContext for ContextWrapper<'a, T> { self.api().editgroup_id_get(id, &self.context()) } - fn editgroup_post(&self) -> Box + Send> { - self.api().editgroup_post(&self.context()) + fn editgroup_post(&self, body: models::Editgroup) -> Box + Send> { + self.api().editgroup_post(body, &self.context()) } fn editor_username_changelog_get(&self, username: String) -> Box + Send> { -- cgit v1.2.3