pub struct SyncExternalsystemsAdapterProxyResource<'a> { /* private fields */ }Expand description
client.sync().externalsystems().adapter_proxy()
Implementations§
Source§impl<'a> SyncExternalsystemsAdapterProxyResource<'a>
impl<'a> SyncExternalsystemsAdapterProxyResource<'a>
Sourcepub fn create(
&self,
external_system_id: impl Display,
uri: impl Display,
) -> Result<()>
pub fn create( &self, external_system_id: impl Display, uri: impl Display, ) -> Result<()>
Proxy POST to a sync adapter
POST /sync/externalsystems/{externalSystemId}/adapterproxy/{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. externalSystemId set to 0 selects the local ChurchTools system.
§Example
client.sync().externalsystems().adapter_proxy().create(1, "adapter/info")?;Sourcepub fn delete(
&self,
external_system_id: impl Display,
uri: impl Display,
) -> Result<()>
pub fn delete( &self, external_system_id: impl Display, uri: impl Display, ) -> Result<()>
Proxy DELETE to a sync adapter
DELETE /sync/externalsystems/{externalSystemId}/adapterproxy/{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. externalSystemId set to 0 selects the local ChurchTools system.
§Example
client.sync().externalsystems().adapter_proxy().delete(1, "adapter/info")?;Sourcepub fn get(
&self,
external_system_id: impl Display,
uri: impl Display,
) -> Result<()>
pub fn get( &self, external_system_id: impl Display, uri: impl Display, ) -> Result<()>
Proxy GET to a sync adapter
GET /sync/externalsystems/{externalSystemId}/adapterproxy/{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. externalSystemId set to 0 selects the local ChurchTools system.
§Example
client.sync().externalsystems().adapter_proxy().get(1, "adapter/info")?;Sourcepub fn patch(
&self,
external_system_id: impl Display,
uri: impl Display,
) -> Result<()>
pub fn patch( &self, external_system_id: impl Display, uri: impl Display, ) -> Result<()>
Proxy PATCH to a sync adapter
PATCH /sync/externalsystems/{externalSystemId}/adapterproxy/{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. externalSystemId set to 0 selects the local ChurchTools system.
§Example
client.sync().externalsystems().adapter_proxy().patch(1, "adapter/info")?;Sourcepub fn update(
&self,
external_system_id: impl Display,
uri: impl Display,
) -> Result<()>
pub fn update( &self, external_system_id: impl Display, uri: impl Display, ) -> Result<()>
Proxy PUT to a sync adapter
PUT /sync/externalsystems/{externalSystemId}/adapterproxy/{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. externalSystemId set to 0 selects the local ChurchTools system.
§Example
client.sync().externalsystems().adapter_proxy().update(1, "adapter/info")?;