August 2025
Intermediate to advanced
294 pages
6h 59m
English
One of the core design principles[63] of Ash is its declarative and derivable nature. By themselves, resources are static configuration files that Ash can interpret and generate code from. We’ve seen examples of this with code interfaces for our actions—we declared that we should have an interface for our Artist :search action that accepts one argument for the query text, and Ash generated the function for us to call.
This can be taken further—Ash can generate a lot more than functions. It can generate entire APIs around the existing resources and actions in your app, hence the name of this chapter.
It sounds wild, but what is an API, really? A set of functions that map from an input URL to a response in a ...
Read now
Unlock full access