Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions documentation/dsls/DSL-Ash.Domain.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ General domain configuration

### Examples
```
domain do
description """
Resources related to the flux capacitor.
"""
end
domain do
description """
Resources related to the flux capacitor.
"""
end

```

Expand Down Expand Up @@ -49,10 +49,10 @@ List the resources of this domain

### Examples
```
resources do
resource MyApp.Tweet
resource MyApp.Comment
end
resources do
resource MyApp.Tweet
resource MyApp.Comment
end

```

Expand Down Expand Up @@ -106,7 +106,7 @@ define name
```


Defines a function with the corresponding name and arguments. See the [code interface guide](/documentation/topics/resources/code-interfaces.md) for more.
Defines a function with the corresponding name and arguments. See the [code interface guide](/documentation/topics/resources/code-interfaces.md) for more.


### Nested DSLs
Expand Down Expand Up @@ -248,7 +248,7 @@ define_calculation name
```


Defines a function with the corresponding name and arguments, that evaluates a calculation. Use `:_record` to take an instance of a record. See the [code interface guide](/documentation/topics/resources/code-interfaces.md) for more.
Defines a function with the corresponding name and arguments, that evaluates a calculation. Use `:_record` to take an instance of a record. See the [code interface guide](/documentation/topics/resources/code-interfaces.md) for more.


### Nested DSLs
Expand Down Expand Up @@ -399,9 +399,9 @@ Options for how requests are executed using this domain

### Examples
```
execution do
timeout :timer.seconds(30)
end
execution do
timeout :timer.seconds(30)
end

```

Expand All @@ -421,16 +421,16 @@ end


## authorization
Options for how requests are authorized using this domain. See the [Sensitive Data guide](/documentation/topics/security/sensitive-data.md) for more.
Options for how requests are authorized using this domain. See the [Sensitive Data guide](/documentation/topics/security/sensitive-data.md) for more.




### Examples
```
authorization do
authorize :always
end
authorization do
authorize :always
end

```

Expand Down
Loading
Loading