API Reference ash_json_api v0.28.0

Modules

Introspection functions for AshJsonApi apis.

The entrypoint for adding JSON:API behavior to an Ash API

Defines a router module to be included in the router

Represents an AshJsonApi Error

Returned when a actor is not allowed to perform an action, or when a actor is not present, but must be in order to perform an action.

Returned when an unexpected error in the framework has occured.

Returned when the request body provided is invalid

Returned when a field is requested that does not exist or is invalid

Returned when a header provided is invalid

Returned when the includes string provided in the query parameter include is invalid.

Returned when one of the nested parameters provided in the query parameter page is invalid

Returned when the query provided is invalid

Returned when a field is requested for a type that does not exist or is invalid

Returned when a record was explicitly requested, but could not be found.

Returned when the client does not provide (via the Content-Type header) the correct json API media type: application/vnd.api+json

Returned when the client does not accept (via the Accept header) the json API media type: application/vnd.api+json

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

Represents a route for a resource

Ensures that the base route is prepended to each route

Ensures that the resource either has a primary key

Validates that all method/route combinations are unique