<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">

<document>
  <header>
    <title>GET status </title>
  </header>

  <body>
  <section>
   <title>Description</title>
    <p>Returns the current status of the Templeton server.
       Useful for heartbeat monitoring.</p>
  </section>

  <section>
   <title>URL</title>
    <p><code>http://</code>www.myserver.com<code>/templeton/v1/status</code></p>
  </section>

  <section>
   <title>Parameters</title>
    <p>Only the <a href="index.html#Standard+Parameters">standard parameters</a>
       are accepted.</p>
  </section>

  <section>
   <title>Results</title>
    <table>
    <tr><th>Name</th><th>Description</th></tr>

    <tr><td><strong>status</strong></td>
        <td>"ok" if the Templeton server was contacted.</td>
    </tr>

    <tr><td><strong>version</strong></td>
        <td>String containing the version number similar to "v1".</td>
    </tr>
    </table>
  </section>

  <section>
   <title>Example</title>

   <p><strong>Curl Command</strong></p>
<source>
% curl -s 'http://localhost:50111/templeton/v1/status'
</source>

   <p><strong>JSON Output</strong></p>
<source>
{
 "status": "ok",
 "version": "v1"
}
</source>
  </section>
 </body>
</document>
