ash_json_api
v1.4.13
Pages
Modules
Mix
Tasks
API Reference
Modules
Mix Tasks
Home
Tutorials
Topics
Reference
Tutorials
Getting started with AshJsonApi
Installing AshJsonApi
Configure your Resources and Domain and expose actions
Define Routes
Run your API
Open API
Topics
What is AshJsonApi
Non-Spec query parameters
filter_included
sort_included
Open API
Use with Phoenix
Use with Plug
Customize values in the OpenAPI documentation
Generate spec files via CLI
Using this file in production
Known issues/limitations
Relationships
Relationship Manipulation Routes
Links
Self links to routes
Pagination links on index routes
Self links on individual entities
Related links
Upgrading to AshJsonApi to 1.0
Errors
Relationship Routes
Ash.Api is now Ash.Domain in Ash 3.0
Authorize with AshJsonApi
Setting the actor manually
Authenticating with AshJsonApi
The route
DSLs
DSL: AshJsonApi.Resource
json_api
json_api.routes
json_api.routes.get
json_api.routes.index
json_api.routes.post
json_api.routes.patch
json_api.routes.delete
json_api.routes.related
json_api.routes.relationship
json_api.routes.post_to_relationship
json_api.routes.patch_relationship
json_api.routes.delete_from_relationship
json_api.routes.route
json_api.primary_key
DSL: AshJsonApi.Domain
json_api
json_api.open_api
json_api.routes
json_api.routes.base_route
json_api.routes.base_route.get
json_api.routes.base_route.index
json_api.routes.base_route.post
json_api.routes.base_route.patch
json_api.routes.base_route.delete
json_api.routes.base_route.related
json_api.routes.base_route.relationship
json_api.routes.base_route.post_to_relationship
json_api.routes.base_route.patch_relationship
json_api.routes.base_route.delete_from_relationship
json_api.routes.base_route.route
json_api.routes.get
json_api.routes.index
json_api.routes.post
json_api.routes.patch
json_api.routes.delete
json_api.routes.related
json_api.routes.relationship
json_api.routes.post_to_relationship
json_api.routes.patch_relationship
json_api.routes.delete_from_relationship
json_api.routes.route
About AshJsonApi
Change Log
v1.4.13 (2024-11-04)
v1.4.12 (2024-10-21)
v1.4.11 (2024-10-14)
v1.4.10 (2024-10-10)
v1.4.9 (2024-09-27)
v1.4.8 (2024-09-16)
v1.4.7 (2024-09-04)
v1.4.6 (2024-08-26)
v1.4.5 (2024-08-20)
v1.4.4 (2024-08-16)
v1.4.3 (2024-08-08)
v1.4.2 (2024-08-08)
v1.4.1 (2024-07-30)
v1.4.0 (2024-07-30)
v1.3.8 (2024-07-22)
v1.3.7 (2024-07-15)
v1.3.6 (2024-07-08)
v1.3.5 (2024-07-06)
v1.3.4 (2024-07-05)
v1.3.3 (2024-07-04)
v1.3.2 (2024-07-02)
v1.3.1 (2024-07-01)
v1.3.0 (2024-06-28)
v1.2.2 (2024-06-19)
v1.2.1 (2024-06-18)
v1.2.0 (2024-06-11)
v1.1.2 (2024-06-05)
v1.1.1 (2024-06-05)
v1.1.0 (2024-05-24)
v1.0.0
AshJsonApi
AshJsonApi
Summary
Functions
authorize?/1
log_errors?/1
prefix/1
router/1
serve_schema?/1
AshJsonApi.Domain
Summary
Functions
install/5
json_api/1
AshJsonApi.Resource
Summary
Functions
base_route/1
encode_primary_key/1
includes/1
install/5
json_api/1
only_primary_key?/2
primary_key_delimiter/1
primary_key_fields/1
route/3
routes/2
type/1
AshJsonApi.Router
Utilities
AshJsonApi.OpenApi
Sections
Example
Summary
Functions
define_filter?/2
paths/3
raw_filter_type/2
resource_filter_fields_fields_only/1
responses/0
schemas/1
spec/2
tags/1
tags/2
write_attributes/5
Introspection
AshJsonApi.Domain.Info
Summary
Functions
authorize?/1
group_by/1
include_nil_values?/1
log_errors?/1
prefix/1
router/1
routes/1
serve_schema?/1
show_raised_errors?/1
tag/1
AshJsonApi.Resource.Info
Summary
Functions
base_route/1
default_fields/1
derive_filter?/1
derive_sort?/1
include_nil_values?/1
includes/1
primary_key_delimiter/1
primary_key_fields/1
routes/2
type/1
AshJsonApi.Resource.Route
Summary
Types
t/0
Errors
AshJsonApi.Error
Summary
Types
t/0
Functions
class_to_status/1
format_log/1
new/1
to_json_api_errors/4
with_source_pointer/4
AshJsonApi.Error.InvalidBody
Summary
Functions
exception/0
AshJsonApi.Error.InvalidField
Summary
Functions
exception/0
AshJsonApi.Error.InvalidHeader
Summary
Functions
exception/0
AshJsonApi.Error.InvalidIncludes
Summary
Types
t/0
Functions
exception/0
AshJsonApi.Error.InvalidPagination
Summary
Functions
exception/0
AshJsonApi.Error.InvalidQuery
Summary
Functions
exception/0
AshJsonApi.Error.InvalidType
Summary
Functions
exception/0
AshJsonApi.Error.NotFound
Summary
Functions
exception/0
AshJsonApi.Error.UnacceptableMediaType
Summary
Functions
exception/0
AshJsonApi.Error.UnsupportedMediaType
Summary
Functions
exception/0
AshJsonApi.ToJsonApiError
Sections
Example
Summary
Types
t/0
Functions
to_json_api_error/1
Internals
AshJsonApi.Domain.BaseRoute
AshJsonApi.Domain.Verifiers.VerifyActions
AshJsonApi.Domain.Verifiers.VerifyHasType
AshJsonApi.Domain.Verifiers.VerifyQueryParams
AshJsonApi.Domain.Verifiers.VerifyRelationships
Summary
Functions
verify/1
AshJsonApi.Igniter
Summary
Functions
ash_json_api_routers/1
find_ash_json_api_router/2
setup_ash_json_api_router/2
setup_phoenix/2
AshJsonApi.Plug.Parser
Sections
Examples
Protocol
Example HTTP Message
AshJsonApi.Resource.Verifiers.VerifyActions
AshJsonApi.Resource.Verifiers.VerifyHasType
AshJsonApi.Resource.Verifiers.VerifyIncludes
AshJsonApi.Resource.Verifiers.VerifyQueryParams
AshJsonApi.Resource.Verifiers.VerifyRelationships
Summary
Functions
verify/1
AshJsonApi.Type
Summary
Callbacks
json_schema/1
json_write_schema/1
Internals
mix ash_json_api.install
Summary
Functions
igniter/2
Search documentation of ash_json_api
Settings
View Source
AshJsonApi.Resource.Verifiers.VerifyHasType
(ash_json_api v1.4.13)
Verifies that a resource has a type if it has any routes that need it.
×