-
Notifications
You must be signed in to change notification settings - Fork 44
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
Contradicting requirements on contained resource metadata #450
Comments
Request to correct me if i am missing something obvious |
#server-contained-resource-metadata intends that the server should authoritatively materialise the resource metadata about contained resources. It does not require servers to accept and preserve the sender's statements about contained resource metadata.
#server-protect-contained-resource-metadata intends that the target of the HTTP request is the container resource. #server-protect-contained-resource-metadata intends a constraint on the request semantics of POST (to "perform resource-specific processing on the request payload"), targeting a container. It does not describe the processing instructions for payloads containing resource metadata about "to be created" resource. In essence, the server can accept the POST request while ignoring sender's statements about contained resource metadata. There is a related background in #298 (comment) where I mentioned:
It means that when a POST request targets a container, the request semantics is about appending to the container - in effect creating a new resource in the targetted container. It is not about updating the description of the container (besides effectively adding a containment statement and server including resource metadata about the created resource.) |
Following two statements contradict each other.
Req1
Req2
First one requires us to update contained resource metadata statements, when
POST
targets a container with representation ofto be created
resource.Second one forbids updating them when
POST
targets
a container.I understand that intention in second statement is to disallow them in case of
POST
in representation ofto be created
container, but notrequest target
. But statement generalizes over methods on request-target, and representation-update operations.The text was updated successfully, but these errors were encountered: