Skip to content
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

Properly distinguish list-item and get-item routes in Application Passwords reference #148

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 1 addition & 48 deletions reference/application-passwords.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,40 +102,9 @@
</tr>
</table>

</div>
</section>

<div><section class="route">
<div class="primary">
<h2>Retrieve a Application Password</h2>

<h3>Definition & Example Request</h3>

<code>GET /wp/v2/users/&lt;user_id&gt;)/application-passwords</code>

<p>Query this endpoint to retrieve a specific application password record.</p>

<code>$ curl https://example.com/wp-json/wp/v2/users/&lt;user_id&gt;)/application-passwords</code>
</div>
<div class="secondary">
<h3>Arguments</h3>
<table class="arguments">
<tr>
<td>
<code>context</code><br />
</td>
<td>
<p>Scope under which the request is made; determines fields present in response.</p>
<p class="default">
Default: <code>view</code>
</p>
<p>One of: <code>view</code>, <code>embed</code>, <code>edit</code></p>
</td>
</tr>
</table>

</div>
</section>
<div>
<section class="route">
<div class="primary">
<h2>Create a Application Password</h2>
Expand Down Expand Up @@ -169,22 +138,6 @@
<code>POST /wp/v2/users/&lt;user_id&gt;)/application-passwords</code>
</div>
</section>
<section class="route">
<div class="primary">
<h2>Delete a Application Password</h2>
<p>There are no arguments for this endpoint.</p>

</div>
<div class="secondary">
<h3>Definition</h3>

<code>DELETE /wp/v2/users/&lt;user_id&gt;)/application-passwords</code>

<h3>Example Request</h3>

<code>$ curl -X DELETE https://example.com/wp-json/wp/v2/users/&lt;user_id&gt;)/application-passwords</code>
</div>
</section>
<section class="route">
<div class="primary">
<h2>Retrieve a Application Password</h2>
Expand Down