Skip to content

Wrong specification #40

Description

@5ghz

jsonapi-requests is not JSON API compatible. Because if server returns this relationship obejct:

"relationships":{"vendor":{"links":{"self":"http://example.org/api/rest/admin/gateway-groups/14/relationships/vendor","related":"http://example.org/api/rest/admin/gateway-groups/14/vendor"}}}
Empty relationship object in ApiResponse

But in http://jsonapi.org/format/#document-resource-object-relationships

A “relationship object” MUST contain at least one of the following:

links: a links object containing at least one of the following:
    self: a link for the relationship itself (a “relationship link”). This link allows the client to directly manipulate the relationship. For example, removing an author through an article’s relationship URL would disconnect the person from the article without deleting the people resource itself. When fetched successfully, this link returns the linkage for the related resources as its primary data. (See Fetching Relationships.)
    related: a related resource link
data: resource linkage
meta: a meta object that contains non-standard meta-information about the relationship

Project must support this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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