Update the API get actions to use the by_id action.
continuous-integration/drone/push Build is passing Details

dev
KKlochko 1 month ago
parent b7979bf6ba
commit ddcab0b843

@ -6,7 +6,7 @@ defmodule DecentralisedBookIndex.Metadata do
json_api do json_api do
routes do routes do
base_route "/books", Metadata.Book do base_route "/books", Metadata.Book do
get :read get :by_id
index :search index :search
related :bids, :read, primary?: true related :bids, :read, primary?: true
@ -15,17 +15,17 @@ defmodule DecentralisedBookIndex.Metadata do
end end
base_route "/authors", Metadata.Author do base_route "/authors", Metadata.Author do
get :read get :by_id
index :search index :search
end end
base_route "/publishers", Metadata.Publisher do base_route "/publishers", Metadata.Publisher do
get :read get :by_id
index :search index :search
end end
base_route "/servers", Metadata.DBIServer do base_route "/servers", Metadata.DBIServer do
get :read get :by_id
index :search index :search
end end
end end

Loading…
Cancel
Save