View Source Permify.Client (Permify v0.1.0)
Provides some helpers to call the service via HTTP.
Link to this section Summary
Functions
Defines a helper to make HTTP GET request.
Creates a new struct Permify.Client.
Defines a helper to make HTTP POST request.
Defines a helper to upload the Permify schema.
Link to this section Types
@type error() :: {:error, binary()} | {:error, pos_integer()}
@opaque http_client()
@type success() :: :ok | {:ok, any()}
@type t() :: %Permify.Client{http_client: http_client()}
Link to this section Functions
Defines a helper to make HTTP GET request.
Creates a new struct Permify.Client.
@spec parse_response(Req.Response.t()) :: success() | error()
Defines a helper to make HTTP POST request.
Defines a helper to upload the Permify schema.