pub struct SyncAdaptersProxyResource<'a> { /* private fields */ }Expand description
client.sync().adapters().proxy()
Implementations§
Source§impl<'a> SyncAdaptersProxyResource<'a>
impl<'a> SyncAdaptersProxyResource<'a>
Sourcepub fn create(
&self,
adapter_name: impl Display,
uri: impl Display,
) -> Result<()>
pub fn create( &self, adapter_name: impl Display, uri: impl Display, ) -> Result<()>
Proxy POST to a sync adapter
POST /sync/adapters/{adapterName}/proxy/{uri}
Forwards the HTTP method and query parameters to the adapter’s /api/{uri} route. Response status, body and Content-Type come from the adapter without a data wrapper. Uses the registered adapter token.
§Example
client.sync().adapters().proxy().create("churchtools", "adapter/info")?;Sourcepub fn delete(
&self,
adapter_name: impl Display,
uri: impl Display,
) -> Result<()>
pub fn delete( &self, adapter_name: impl Display, uri: impl Display, ) -> Result<()>
Proxy DELETE to a sync adapter
DELETE /sync/adapters/{adapterName}/proxy/{uri}
Forwards the HTTP method and query parameters to the adapter’s /api/{uri} route. Response status, body and Content-Type come from the adapter without a data wrapper. Uses the registered adapter token.
§Example
client.sync().adapters().proxy().delete("churchtools", "adapter/info")?;Sourcepub fn get(&self, adapter_name: impl Display, uri: impl Display) -> Result<()>
pub fn get(&self, adapter_name: impl Display, uri: impl Display) -> Result<()>
Proxy GET to a sync adapter
GET /sync/adapters/{adapterName}/proxy/{uri}
Forwards the HTTP method and query parameters to the adapter’s /api/{uri} route. Response status, body and Content-Type come from the adapter without a data wrapper. Uses the registered adapter token.
§Example
client.sync().adapters().proxy().get("churchtools", "adapter/info")?;Sourcepub fn patch(&self, adapter_name: impl Display, uri: impl Display) -> Result<()>
pub fn patch(&self, adapter_name: impl Display, uri: impl Display) -> Result<()>
Proxy PATCH to a sync adapter
PATCH /sync/adapters/{adapterName}/proxy/{uri}
Forwards the HTTP method and query parameters to the adapter’s /api/{uri} route. Response status, body and Content-Type come from the adapter without a data wrapper. Uses the registered adapter token.
§Example
client.sync().adapters().proxy().patch("churchtools", "adapter/info")?;Sourcepub fn update(
&self,
adapter_name: impl Display,
uri: impl Display,
) -> Result<()>
pub fn update( &self, adapter_name: impl Display, uri: impl Display, ) -> Result<()>
Proxy PUT to a sync adapter
PUT /sync/adapters/{adapterName}/proxy/{uri}
Forwards the HTTP method and query parameters to the adapter’s /api/{uri} route. Response status, body and Content-Type come from the adapter without a data wrapper. Uses the registered adapter token.
§Example
client.sync().adapters().proxy().update("churchtools", "adapter/info")?;