Skip to content

Breaking change: null data returned when resource not found #631

Closed
@bart-degreed

Description

@bart-degreed

Description

Earlier, when a resource does not exist, a 404 with an empty response body was returned. After fetch of latest master (with v4 merged in), I am now getting 404 with the next body:

Request URL: https://localhost/api/users/123

Response body:

{
  "links": {
    "self": "https://localhost/api/users"
  },
  "data": null
}

Note the self link is wrong too: it misses the identity.

Traced this down to

// remove the null argument as soon as this has been resolved:
, so it may be intentional.

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