Skip to content

Commit d0bbb92

Browse files
RubenVerborghcsarven
authored andcommitted
Make resource creation more exact and testable.
1 parent c3c8f3b commit d0bbb92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protocol.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,9 @@ <h3 property="schema:name">Resource Type Heuristics</h3>
592592
<div datatype="rdf:HTML" property="schema:description">
593593
<p>When creating new resources, servers can determine an effective request URI’s type by examining the URI path ending (<a href="#uri-slash-semantics">URI Slash Semantics</a>).</p>
594594

595-
<p>Clients who want to assign a URI to a resource, MUST use <code>PUT</code> and <code>PATCH</code> requests.</p>
595+
<p>If a client creates a resource through a <code>PUT</code> or <code>PATCH</code> request, the server MUST preserve the resource URI chosen by the client.</p>
596596

597-
<p>Clients who want the server to assign a URI of a resource, MUST use the <code>POST</code> request. Servers MAY allow clients to suggest the URI of a resource created through POST, using the HTTP <code>Slug</code> header as defined in [<cite><a class="bibref" href="#bib-rfc5023">RFC5023</a></cite>].</p>
597+
<p>If a client creates a resource through a <code>POST</code> request, the server MUST assign a URI to that resource. Servers MAY allow clients to suggest the URI of a resource created through POST, using the HTTP <code>Slug</code> header as defined in [<cite><a class="bibref" href="#bib-rfc5023">RFC5023</a></cite>].</p>
598598

599599
<p>[<a href="https://github.com/solid/specification/pull/160#issuecomment-636822687" rel="cito:citesAsSourceDocument">Source</a>].</p>
600600
</div>

0 commit comments

Comments
 (0)