You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resources "/documents", DocumentController, only: [:index, :create, :show] do
resources "/pages", DocumentPageController, only: [:index]
end
and creating a special view:
defmodule MyApp.API.DocumentPageView do
use JSONAPI.View, type: "document_pages"
but in the link section the url_for_pagination (and therefore all default links) point to the /api/v1/document_pages instead of /api/v1/documents/1/document_pages.
Is there a way how to point the helper to the right URL without hardcoding?
The text was updated successfully, but these errors were encountered:
I was trying to set up a nested resource:
e.g.
and creating a special view:
but in the link section the
url_for_pagination
(and therefore all default links) point to the/api/v1/document_pages
instead of/api/v1/documents/1/document_pages
.Is there a way how to point the helper to the right URL without hardcoding?
The text was updated successfully, but these errors were encountered: