devour-client
devour-client copied to clipboard
Updating To-One Relationships generates plural for resource.
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.