ash_json_api v0.1.2 AshJsonApi.Request View Source

Link to this section Summary

Link to this section Types

Link to this type

error()

View Source
error() :: {:error, AshJsonApi.Error.InvalidInclude.t()}
Link to this type

t()

View Source
t() :: %AshJsonApi.Request{
  action: term(),
  api: term(),
  assigns: term(),
  attributes: term(),
  body: term(),
  errors: term(),
  filter: term(),
  includes: term(),
  includes_keyword: term(),
  json_api_prefix: term(),
  path_params: term(),
  query_params: term(),
  relationship: term(),
  relationships: term(),
  req_headers: term(),
  resource: term(),
  resource_identifiers: term(),
  schema: term(),
  sort: term(),
  url: term(),
  user: term()
}

Link to this section Functions

Link to this function

add_error(request, error_or_errors)

View Source
Link to this function

assign(request, key, value)

View Source
Link to this function

from(conn, resource, action, api, route)

View Source
from(
  conn :: Plug.Conn.t(),
  resource :: Ash.Resource.t(),
  action :: atom(),
  Ash.api(),
  AshJsonApi.route()
) :: t()
Link to this function

update_assign(request, key, default, function)

View Source