私はhttp://jsonapi.org/format/#document-top-levelに従っています
次のエンドポイント (ルート) に気付きました。
/articles/1/relationships/author
Rails では、このルートはどのように構築されroutes.rb
ますか?
resources :articles do
# What goes here?
# Should relationship be a namespace or other?
# I guess author can be defined as a collection, or just a simple get
end
relationships
7 つの RESTFUL アクションのいずれも必要ありません。