View Source AshJsonApi.Resource (ash_json_api v1.4.13)

The entrypoint for adding JSON:API behavior to a resource"

Summary

Functions

This function is deprecated. See AshJsonApi.Resource.Info.base_route/1.

See AshJsonApi.Resource.Info.base_route/1.

Link to this function

encode_primary_key(record)

View Source
This function is deprecated. See AshJsonApi.Resource.Info.includes/1.

See AshJsonApi.Resource.Info.includes/1.

Link to this function

install(igniter, module, arg, path, argv)

View Source
Link to this macro

json_api(body)

View Source (macro)
Link to this function

only_primary_key?(resource, field)

View Source
Link to this function

primary_key_delimiter(resource)

View Source
This function is deprecated. See AshJsonApi.Resource.Info.primary_key_delimiter/1.

See AshJsonApi.Resource.Info.primary_key_delimiter/1.

Link to this function

primary_key_fields(resource)

View Source
This function is deprecated. See AshJsonApi.Resource.Info.primary_key_fields/1.

See AshJsonApi.Resource.Info.primary_key_fields/1.

Link to this function

route(resource, domains, criteria \\ %{})

View Source
Link to this function

routes(resource, domains)

View Source
This function is deprecated. See AshJsonApi.Resource.Info.routes/1.

See AshJsonApi.Resource.Info.routes/2.

This function is deprecated. See AshJsonApi.Resource.Info.type/1.

See AshJsonApi.Resource.Info.type/1.