Skip to content

Commit

Permalink
website: document regions endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanuber committed Nov 24, 2015
1 parent 0bee0ea commit 47f8978
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
File renamed without changes.
38 changes: 38 additions & 0 deletions website/source/docs/http/regions.html.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
layout: "http"
page_title: "HTTP API: /v1/regions"
sidebar_current: "docs-http-regions"
description: >
The '/v1/regions' endpoint lists the known cluster regions.
---

# /v1/regions

## GET

<dl>
<dt>Description</dt>
<dd>
Returns the known region names.
</dd>

<dt>Method</dt>
<dd>GET</dd>

<dt>URL</dt>
<dd>`/v1/regions`</dd>

<dt>Parameters</dt>
<dd>
None
</dd>

<dt>Returns</dt>
<dd>

```javascript
["region1","region2"]
```

</dd>
</dl>
4 changes: 4 additions & 0 deletions website/source/layouts/http.erb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@
</ul>
</li>

<li<%= sidebar_current("docs-http-regions") %>>
<a href="/docs/http/regions.html">Regions</a>
</li>

<li<%= sidebar_current("docs-http-status") %>>
<a href="/docs/http/status.html">Status</a>
</li>
Expand Down

0 comments on commit 47f8978

Please sign in to comment.