AshJsonApi.Api (ash_json_api v0.28.0) View Source

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

Table of Contents

json_api

Global configuration for JSON:API

Examples:

json_api do
  prefix "/json_api"
  serve_schema? true
  log_errors? true
end

  • :prefix - The route prefix at which you are serving the JSON:API

  • :serve_schema? - Whether or not create a /schema route that serves the JSON schema of your API The default value is false.

  • :authorize? - Whether or not to perform authorization for this API The default value is true.

  • :log_errors? - Whether or not to log any errors produced The default value is true.