Skip to content

Updating To-One Relationships generates plural for resource. #164

Open
@0s1r1s

Description

@0s1r1s

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions