ash v1.34.7 Ash.Api.Dsl View Source
A small DSL for declaring APIs
Apis are the entrypoints for working with your resources.
Table of Contents
- resources
- resource
resources
List the resources present in this API
Examples:
resources do
resource MyApp.User
resource MyApp.Post
resource MyApp.Comment
end
resource
A reference to a resource
Introspection Target:
Examples:
resource MyApp.User
:resource
- Required. The module of the resource