mirror of https://github.com/vapor/docs.git
build
This commit is contained in:
parent
007ef6f924
commit
b72081780e
File diff suppressed because one or more lines are too long
|
|
@ -1865,10 +1865,6 @@ the <code>index</code> and <code>show</code> methods match what the <code>Resour
|
|||
|
||||
|
||||
<p><code>drop.resource</code> will take care of registering only the routes that have been supplied by the call to <code>makeResource()</code>. In this case, only the <code>index</code> and <code>show</code> routes will be supplied.</p>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<p><code>drop.resource</code> also adds useful defaults for OPTIONS requests. These can be overriden. </p>
|
||||
</div>
|
||||
<h3 id="actions">Actions<a class="headerlink" href="#actions" title="Permanent link">¶</a></h3>
|
||||
<p>Below is a table describing all of the actions available.</p>
|
||||
<table>
|
||||
|
|
@ -1912,7 +1908,7 @@ the <code>index</code> and <code>show</code> methods match what the <code>Resour
|
|||
<td>Updates the specified user, only modifying fields present in the request data.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>delete</td>
|
||||
<td>destroy</td>
|
||||
<td>DELETE</td>
|
||||
<td>/users/:id</td>
|
||||
<td>Deletes the specified user.</td>
|
||||
|
|
@ -1935,8 +1931,24 @@ the <code>index</code> and <code>show</code> methods match what the <code>Resour
|
|||
<td>/users/:id/edit</td>
|
||||
<td>Displays a form for editing the specified user.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>aboutItem</td>
|
||||
<td>OPTIONS</td>
|
||||
<td>/users/:id</td>
|
||||
<td>Meta action. Displays information about which actions are supported.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>aboutMultiple</td>
|
||||
<td>OPTIONS</td>
|
||||
<td>/users</td>
|
||||
<td>Meta action. Displays information about which actions are supported.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="admonition note">
|
||||
<p class="admonition-title">Note</p>
|
||||
<p>The <code>aboutItem</code> and <code>aboutMultiple</code> meta actions are implemented automatically if not overridden. </p>
|
||||
</div>
|
||||
<div class="admonition tip">
|
||||
<p class="admonition-title">Tip</p>
|
||||
<p>The difference between <code>replace</code> and <code>update</code> is subtle but important:
|
||||
|
|
|
|||
Loading…
Reference in New Issue