EPTSDK.Resource (ept_sdk v11.0.0)

The basic shape of all resource requests, sliced into various common actions against resources.

Summary

Functions

encode_relation(arg)

from_payload(error)

@spec from_payload(
  {:ok, [map()] | map() | nil, EPTSDK.t()}
  | {:error, any()}
  | {:error | :unprocessable_content | :decoding_error, any(), any()}
) ::
  {:ok, [struct()] | struct() | nil, list(), EPTSDK.t()}
  | {:error, any()}
  | {:error | :unprocessable_content | :decoding_error, any(), Req.Response.t()}

with_create()

(macro)

with_delete()

(macro)

with_list()

(macro)

with_show()

(macro)

with_update()

(macro)