devour-client icon indicating copy to clipboard operation
devour-client copied to clipboard

Updating To-One Relationships generates plural for resource.

Open 0s1r1s opened this issue 7 years ago • 0 comments

Hi there,

according to the JsonApi specs Updating To-One Relationships I'm trying to build this path /articles/1/relationships/author using devour.

My code lokes like this:

JsonApi.one('article', 1)
        .relationships()
        .all('author')

Which generates: /articles/1/relationships/authors.

Is there a way to generate the singular author? If I define a collectionPath I would break the pluralize functionality. Same if I disable pluralize.

Cheers and thanks for the nice Plugin.

0s1r1s avatar Oct 23 '18 12:10 0s1r1s