Refactor the metadata domain format.

dev
KKlochko 4 months ago
parent 43e2e24fee
commit a7c6d6770c

@ -6,8 +6,14 @@ defmodule DecentralisedBookIndex.Metadata do
resource DecentralisedBookIndex.Metadata.Book
resource DecentralisedBookIndex.Metadata.Author do
define :create_author, action: :create, args: [:name, :description, {:optional, :author_alias_registry_id}]
define :add_author_to_related_alias_registry, action: :add_author_to_related_alias_registry, args: [:name, :description, :related_author_id]
define :create_author,
action: :create,
args: [:name, :description, {:optional, :author_alias_registry_id}]
define :add_author_to_related_alias_registry,
action: :add_author_to_related_alias_registry,
args: [:name, :description, :related_author_id]
define :list_authors, action: :read
define :get_author_by_id, args: [:id], action: :by_id
define :get_author_alternative_names, args: [:author], action: :get_alternative_names

Loading…
Cancel
Save