August 2025
Intermediate to advanced
294 pages
6h 59m
English
A REST (or RESTful) API can be generated by Ash using the ash_json_api package. This will accept requests over HTTP and return data formatted as JSON. APIs generated with ash_json_api are compatible with the JSON:API[67] specification and can also generate OpenAPI[68] schemas, opening up a whole world of supporting tooling options.
You can add ash_json_api to Tunez using the igniter.install Mix task:
| | $ mix igniter.install ash_json_api |
This will add a few new pieces to your app, which have a lot of power. The additions include the following:
The ash_json_api Hex package, as well as its sibling dependency open_api_spex (in mix.exs and mix.lock)
Code formatting and configuration to support a new ...
Read now
Unlock full access