Skip to content

Commit b50cb80

Browse files
committed
add Domain descriptions
1 parent b7d85f7 commit b50cb80

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

diffo.livemd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,6 @@ broadband_0001 |> Jason.encode!(pretty: true) |> IO.puts
448448
## What Next?
449449

450450
In this tutorial you've used Diffo to create, relate and update some TMF Service and Resources, simulating activities over the service and resource lifecycle, and you've learned how this functionality is underpinned by open source Neo4j, Ash Framework and Elixir.
451-
Diffo contain an example Access domain showing how to specialise the structure and behaviour of TMF Services and Resources.
451+
Diffo contains an example Access domain showing how to specialise the structure and behaviour of TMF Services and Resources.
452452

453453
If you find Diffo useful please visit and star on [github](https://github.com/diffo-dev/diffo/). Feel free to join discussions and raise issues to discuss PR's.

lib/diffo/access/access.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ defmodule Diffo.Access do
1717
alias Diffo.Access.Cable
1818
alias Diffo.Access.Path
1919

20+
domain do
21+
description "An example showing how TMF Services and Resources for a fictional Access domain can be extended from the Provider domain"
22+
end
23+
2024
resources do
2125
resource DslAccess do
2226
define :get_dsl_by_id, action: :read, get_by: :id

lib/diffo/provider.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ defmodule Diffo.Provider do
1111
use Ash.Domain,
1212
otp_app: :diffo
1313

14+
domain do
15+
description "Extensible Ash Resources and API related to Providing TMF Services and Resources"
16+
end
17+
1418
resources do
1519
resource Diffo.Provider.Specification do
1620
define :create_specification, action: :create

0 commit comments

Comments
 (0)