API calls for all endpoints tagged Endpoints.
Summary
Functions
List all endpoints
Delete endpoint
Get endpoint by ID
Update retry policy for an endpoint
Rotate endpoint signing secret
Create a new endpoint
Functions
@spec endpoints_get( Tesla.Env.client(), keyword() ) :: {:ok, [HookSniffAPI.Model.Endpoint.t()]} | {:error, Tesla.Env.t()}
List all endpoints
Parameters
connection(HookSniffAPI.Connection): Connection to serveropts(keyword): Optional parameters
Returns
{:ok, [%Endpoint{}, ...]}on success{:error, Tesla.Env.t}on failure
@spec endpoints_id_delete(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:error, Tesla.Env.t()}
Delete endpoint
Parameters
connection(HookSniffAPI.Connection): Connection to serverid(String.t):opts(keyword): Optional parameters
Returns
{:ok, nil}on success{:error, Tesla.Env.t}on failure
@spec endpoints_id_get(Tesla.Env.client(), String.t(), keyword()) :: {:ok, nil} | {:ok, HookSniffAPI.Model.Endpoint.t()} | {:error, Tesla.Env.t()}
Get endpoint by ID
Parameters
connection(HookSniffAPI.Connection): Connection to serverid(String.t):opts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.Endpoint.t}on success{:error, Tesla.Env.t}on failure
@spec endpoints_id_put( Tesla.Env.client(), String.t(), HookSniffAPI.Model.UpdateEndpointRequest.t(), keyword() ) :: {:ok, HookSniffAPI.Model.Endpoint.t()} | {:error, Tesla.Env.t()}
Update endpoint
Parameters
connection(HookSniffAPI.Connection): Connection to serverid(String.t):update_endpoint_request(UpdateEndpointRequest):opts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.Endpoint.t}on success{:error, Tesla.Env.t}on failure
@spec endpoints_id_retry_policy_put( Tesla.Env.client(), String.t(), HookSniffAPI.Model.RetryPolicy.t(), keyword() ) :: {:ok, HookSniffAPI.Model.Endpoint.t()} | {:error, Tesla.Env.t()}
Update retry policy for an endpoint
Parameters
connection(HookSniffAPI.Connection): Connection to serverid(String.t):retry_policy(RetryPolicy):opts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.Endpoint.t}on success{:error, Tesla.Env.t}on failure
@spec endpoints_id_rotate_secret_post(Tesla.Env.client(), String.t(), keyword()) :: {:ok, HookSniffAPI.Model.EndpointsIdRotateSecretPost200Response.t()} | {:error, Tesla.Env.t()}
Rotate endpoint signing secret
Parameters
connection(HookSniffAPI.Connection): Connection to serverid(String.t):opts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.EndpointsIdRotateSecretPost200Response.t}on success{:error, Tesla.Env.t}on failure
@spec endpoints_post( Tesla.Env.client(), HookSniffAPI.Model.CreateEndpointRequest.t(), keyword() ) :: {:ok, HookSniffAPI.Model.Endpoint.t()} | {:error, Tesla.Env.t()}
Create a new endpoint
Parameters
connection(HookSniffAPI.Connection): Connection to servercreate_endpoint_request(CreateEndpointRequest):opts(keyword): Optional parameters
Returns
{:ok, HookSniffAPI.Model.Endpoint.t}on success{:error, Tesla.Env.t}on failure