You've already forked tribes-plugin-supertest
forked from tribes/tribes-plugin-template
5c3ea44aa9
Adopt canonical plugin id/slug manifest fields, vendor-prefixed OTP app naming, and fully-qualified capability ids for Supertest.
28 lines
884 B
Elixir
28 lines
884 B
Elixir
defmodule TribeOne.TribesPlugin.Supertest do
|
|
@moduledoc """
|
|
Ash domain for the Tribes supertest plugin fixture.
|
|
"""
|
|
|
|
use Ash.Domain,
|
|
otp_app: :tribe_one_supertest
|
|
|
|
resources do
|
|
resource TribeOne.TribesPlugin.Supertest.Case do
|
|
define(:create_case, action: :create)
|
|
define(:get_case, action: :get_by_id, args: [:id])
|
|
define(:list_cases, action: :read)
|
|
define(:list_cases_by_run, action: :by_run, args: [:run_id])
|
|
define(:update_case, action: :update)
|
|
define(:destroy_case, action: :destroy)
|
|
end
|
|
|
|
resource TribeOne.TribesPlugin.Supertest.Event do
|
|
define(:create_event, action: :create)
|
|
define(:get_event, action: :get_by_id, args: [:id])
|
|
define(:list_events, action: :read)
|
|
define(:list_events_by_run, action: :by_run, args: [:run_id])
|
|
define(:destroy_event, action: :destroy)
|
|
end
|
|
end
|
|
end
|