Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/WP-API/gh-pages' into gh-p…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
BE-Webdesign committed Dec 6, 2016
2 parents a2f845b + f8e49c7 commit 3845e91
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _data/reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,7 @@
page: reference/tags/index.md

- title: Users
page: reference/users/index.md
page: reference/users/index.md

- title: Settings
page: reference/settings/index.md
7 changes: 7 additions & 0 deletions _includes/reference-parts/update-settings.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<section class="route">
<div class="primary">
<h2>Update a {{ page.resource }}</h2>
{% assign args = include.route.endpoints[1].args %}
{% include reference-parts/args-list.html args=args link=true %}
</div>
</section>
20 changes: 20 additions & 0 deletions reference/settings/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: Users API Reference
has_superbar: Yes
route_path: wp-json/wp/v2/settings
resource: Setting
---

<section class="route">
<div class="primary">
{% include reference-parts/schema.html schema=site.data.settings.schema %}
</div>
<div class="secondary">
<h3>Example Request</h3>

<code>$ curl -X OPTIONS -i http://demo.wp-api.org/wp-json{{ site.data.settings.routes['/wp/v2/settings'].nicename }}</code>
</div>
</section>

{% assign route=site.data.settings.routes['/wp/v2/settings'] %}
{% include reference-parts/update-settings.html route=route %}

0 comments on commit 3845e91

Please sign in to comment.