Current section
Files
Jump to
Current section
Files
lib/treedx/adapters/policy.ex
defmodule TreeDxSdk.Policy do
@moduledoc false
alias TreeDxSdk.Adapters.Common
def capabilities(client), do: Common.json_request(client, :get, "/api/v1/policy/capabilities")
def grants(client, query \\ %{}),
do: Common.json_request(client, :get, "/api/v1/policy/grants", nil, query)
def create_grant(client, body),
do: Common.json_request(client, :post, "/api/v1/policy/grants", body)
def refresh(client, body \\ %{}),
do: Common.json_request(client, :post, "/api/v1/policy/refresh", body)
end