ash_json_api v0.4.0 AshJsonApi.Api View Source

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

Link to this section Summary

Functions

Global configuration for JSON:API

Link to this section Functions

Link to this macro

json_api(body)

View Source (macro)

Global configuration for JSON:API

Options

  • :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.