Skip to content

Conversation

@hpawe01
Copy link
Contributor

@hpawe01 hpawe01 commented Feb 7, 2018

No description provided.

When the server responds with the status `200 OK` the client should check, if the server updated the resource as well and provides an updated version of the resource. In that case the `data` attribute is populated with the updated resource. When the server didn't change anything there is no `data` attribute and we can return the local model.

See http://jsonapi.org/format/#crud-updating
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 86.343% when pulling 389f51e on hpawe01:patch-3 into 7e1028e on ghidoz:master.

@coveralls
Copy link

coveralls commented Feb 7, 2018

Coverage Status

Coverage increased (+1.3%) to 88.194% when pulling b80f797 on hpawe01:patch-3 into 7e1028e on ghidoz:master.

@hpawe01
Copy link
Contributor Author

hpawe01 commented Feb 7, 2018

Will create some new tests to increase coverage (with fewer commits)

@HennerM HennerM merged commit 68fb942 into ghidoz:master Feb 11, 2018
@hpawe01 hpawe01 deleted the patch-3 branch February 11, 2018 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants