Update the API get actions to use the by_id action.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -6,7 +6,7 @@ defmodule DecentralisedBookIndex.Metadata do
|
||||
json_api do
|
||||
routes do
|
||||
base_route "/books", Metadata.Book do
|
||||
get :read
|
||||
get :by_id
|
||||
index :search
|
||||
|
||||
related :bids, :read, primary?: true
|
||||
@@ -15,17 +15,17 @@ defmodule DecentralisedBookIndex.Metadata do
|
||||
end
|
||||
|
||||
base_route "/authors", Metadata.Author do
|
||||
get :read
|
||||
get :by_id
|
||||
index :search
|
||||
end
|
||||
|
||||
base_route "/publishers", Metadata.Publisher do
|
||||
get :read
|
||||
get :by_id
|
||||
index :search
|
||||
end
|
||||
|
||||
base_route "/servers", Metadata.DBIServer do
|
||||
get :read
|
||||
get :by_id
|
||||
index :search
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user