Skip to content

returning array vs object for an individual resource #99

@rhec

Description

@rhec

As I read it the current json-api spec says the api should return a single object when a single resource is requested, rather than an array of length one. RestPack currently returns an array. I can understand holding off on changing this, given there is still open discussion about it, so I wanted to ask if you'd consider a patch to match the current spec. If not, what about considering a patch to remove the pagination metadata from individual resource responses, just to reduce overhead?

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