Skip to content

JSON API v1.0 not supported #28

@simonihmig

Description

@simonihmig

This library says it supports the JSON API specs, but as it seems not the current standard v1.0, or am I missing something?

According to the standard the primary resource should be put under the "data" key, but this implementation puts it under a key named like the resource type (see https://github.com/GoIntegro/hateoas/blob/master/JsonApi/DocumentSerializer.php#L83).

Other specs like putting resource fields under a "attributes" key, or using the "included" key to put related resources, seem to be not supported as well. So in general the JSON format seems to differ from the spec v1.0 substantially!

Which version is it based on then? Does not seem to be mentioned, and when is v1.0 support to be expected, if at all?

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