From 19eb1641eece9f03ca193417cdf244efc1a9da8a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 27 May 2018 14:45:07 -0700 Subject: swagger spec: body -> entity --- rust/fatcat-api/src/client.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'rust/fatcat-api/src/client.rs') diff --git a/rust/fatcat-api/src/client.rs b/rust/fatcat-api/src/client.rs index 23f6dd21..d81d251f 100644 --- a/rust/fatcat-api/src/client.rs +++ b/rust/fatcat-api/src/client.rs @@ -284,10 +284,10 @@ impl Api for Client { Box::new(futures::done(result)) } - fn container_post(&self, param_body: models::ContainerEntity, context: &Context) -> Box + Send> { + fn container_post(&self, param_entity: models::ContainerEntity, context: &Context) -> Box + Send> { let url = format!("{}/v0/container", self.base_path); - let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_entity).expect("impossible to fail to serialize"); let hyper_client = (self.hyper_client)(); let request = hyper_client.request(hyper::method::Method::Post, &url); @@ -472,10 +472,10 @@ impl Api for Client { Box::new(futures::done(result)) } - fn creator_post(&self, param_body: models::CreatorEntity, context: &Context) -> Box + Send> { + fn creator_post(&self, param_entity: models::CreatorEntity, context: &Context) -> Box + Send> { let url = format!("{}/v0/creator", self.base_path); - let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_entity).expect("impossible to fail to serialize"); let hyper_client = (self.hyper_client)(); let request = hyper_client.request(hyper::method::Method::Post, &url); @@ -657,10 +657,10 @@ impl Api for Client { Box::new(futures::done(result)) } - fn editgroup_post(&self, param_body: models::Editgroup, context: &Context) -> Box + Send> { + fn editgroup_post(&self, param_entity: models::Editgroup, context: &Context) -> Box + Send> { let url = format!("{}/v0/editgroup", self.base_path); - let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_entity).expect("impossible to fail to serialize"); let hyper_client = (self.hyper_client)(); let request = hyper_client.request(hyper::method::Method::Post, &url); @@ -952,10 +952,10 @@ impl Api for Client { Box::new(futures::done(result)) } - fn file_post(&self, param_body: models::FileEntity, context: &Context) -> Box + Send> { + fn file_post(&self, param_entity: models::FileEntity, context: &Context) -> Box + Send> { let url = format!("{}/v0/file", self.base_path); - let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_entity).expect("impossible to fail to serialize"); let hyper_client = (self.hyper_client)(); let request = hyper_client.request(hyper::method::Method::Post, &url); @@ -1140,10 +1140,10 @@ impl Api for Client { Box::new(futures::done(result)) } - fn release_post(&self, param_body: models::ReleaseEntity, context: &Context) -> Box + Send> { + fn release_post(&self, param_entity: models::ReleaseEntity, context: &Context) -> Box + Send> { let url = format!("{}/v0/release", self.base_path); - let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_entity).expect("impossible to fail to serialize"); let hyper_client = (self.hyper_client)(); let request = hyper_client.request(hyper::method::Method::Post, &url); @@ -1265,10 +1265,10 @@ impl Api for Client { Box::new(futures::done(result)) } - fn work_post(&self, param_body: models::WorkEntity, context: &Context) -> Box + Send> { + fn work_post(&self, param_entity: models::WorkEntity, context: &Context) -> Box + Send> { let url = format!("{}/v0/work", self.base_path); - let body = serde_json::to_string(¶m_body).expect("impossible to fail to serialize"); + let body = serde_json::to_string(¶m_entity).expect("impossible to fail to serialize"); let hyper_client = (self.hyper_client)(); let request = hyper_client.request(hyper::method::Method::Post, &url); -- cgit v1.2.3