Skip to content

update can only target a single resource #1648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2022

Conversation

jelhan
Copy link
Contributor

@jelhan jelhan commented Aug 1, 2022

An update can only target a single resource. Speaking of "targeted resource(s)" may confuse the reader therefore.

An update may affect multiple resources if it has side-effects. E.g. updating a rating resource may indirectly update averageRating attribute of a related product resource. But nevertheless the update only targets the rating resource.

The difference between targeted and affected resources is important. HTTP response status codes required by the specification only depends on targeted resources. E.g. a server must include the targeted resource in response if it has been changed in any other way than specified. But a server may or may not include another, non-targeted resource in response even if it has been changed due to a side-effect.

A similar issue for "targeted relationship(s)" has been fixed in #1638 (comment).

Copy link
Member

@dgeb dgeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. Another good refinement, @jelhan!

@dgeb dgeb merged commit fe2909b into gh-pages Aug 1, 2022
@dgeb dgeb deleted the can-only-update-one-resource-per-request branch August 1, 2022 12:39
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.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy