Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 4e237fd705495e1e21ef20696443e053 > files > 957

bugzilla-5.0.4-3.mga7.noarch.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>6.1.4. Bug User Last Visited &#8212; Bugzilla 5.0.4 documentation</title>
    <link rel="stylesheet" href="../../../_static/bugzilla.css" type="text/css" />
    <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../../../',
        VERSION:     '5.0.4',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true,
        SOURCELINK_SUFFIX: '.txt'
      };
    </script>
    <script type="text/javascript" src="../../../_static/jquery.js"></script>
    <script type="text/javascript" src="../../../_static/underscore.js"></script>
    <script type="text/javascript" src="../../../_static/doctools.js"></script>
    <link rel="shortcut icon" href="../../../_static/favicon.ico"/>
    <link rel="search" title="Search" href="../../../search.html" />
    <link rel="next" title="6.1.5. Bugzilla Information" href="bugzilla.html" />
    <link rel="prev" title="6.1.3. Bugs" href="bug.html" /> 
  </head>
  <body>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="bugzilla.html" title="6.1.5. Bugzilla Information"
             accesskey="N">next</a></li>
        <li class="right" >
          <a href="bug.html" title="6.1.3. Bugs"
             accesskey="P">previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../../index.html">Bugzilla 5.0.4 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="../../index.html" >6. WebService API Reference</a> &#187;</li>
          <li class="nav-item nav-item-2"><a href="index.html" accesskey="U">6.1. Core API v1</a> &#187;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <div class="section" id="bug-user-last-visited">
<h1>6.1.4. Bug User Last Visited<a class="headerlink" href="#bug-user-last-visited" title="Permalink to this headline">¶</a></h1>
<div class="section" id="update-last-visited">
<span id="rest-bug-user-last-visit-update"></span><h2>6.1.4.1. Update Last Visited<a class="headerlink" href="#update-last-visited" title="Permalink to this headline">¶</a></h2>
<p>Update the last-visited time for the specified bug and current user.</p>
<p><strong>Request</strong></p>
<p>To update the time for a single bug id:</p>
<div class="highlight-text"><div class="highlight"><pre><span></span>POST /rest/bug_user_last_visit/(id)
</pre></div>
</div>
<p>To update one or more bug ids at once:</p>
<div class="highlight-text"><div class="highlight"><pre><span></span>POST /rest/bug_user_last_visit
</pre></div>
</div>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">{</span>
  <span class="s2">&quot;ids&quot;</span> <span class="o">:</span> <span class="p">[</span><span class="mi">35</span><span class="p">,</span><span class="mi">36</span><span class="p">,</span><span class="mi">37</span><span class="p">]</span>
<span class="p">}</span>
</pre></div>
</div>
<table border="1" class="docutils">
<colgroup>
<col width="17%" />
<col width="12%" />
<col width="71%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><strong>id</strong></td>
<td>int</td>
<td>An integer bug id.</td>
</tr>
<tr class="row-odd"><td><strong>ids</strong></td>
<td>array</td>
<td>One or more bug ids to update.</td>
</tr>
</tbody>
</table>
<p><strong>Response</strong></p>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">[</span>
  <span class="p">{</span>
    <span class="s2">&quot;id&quot;</span> <span class="o">:</span> <span class="mi">100</span><span class="p">,</span>
    <span class="s2">&quot;last_visit_ts&quot;</span> <span class="o">:</span> <span class="s2">&quot;2014-10-16T17:38:24Z&quot;</span>
  <span class="p">}</span>
<span class="p">]</span>
</pre></div>
</div>
<p>An array of objects containing the items:</p>
<table border="1" class="docutils">
<colgroup>
<col width="20%" />
<col width="12%" />
<col width="68%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>id</td>
<td>int</td>
<td>The bug id.</td>
</tr>
<tr class="row-odd"><td>last_visit_ts</td>
<td>datetime</td>
<td>The timestamp the user last visited the bug.</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="get-last-visited">
<span id="rest-bug-user-last-visit-get"></span><h2>6.1.4.2. Get Last Visited<a class="headerlink" href="#get-last-visited" title="Permalink to this headline">¶</a></h2>
<p><strong>Request</strong></p>
<p>Get the last-visited timestamp for one or more specified bug ids or get a
list of the last 20 visited bugs and their timestamps.</p>
<p>To return the last-visited timestamp for a single bug id:</p>
<div class="highlight-text"><div class="highlight"><pre><span></span>GET /rest/bug_user_last_visit/(id)
</pre></div>
</div>
<p>To return more than one specific bug timestamps:</p>
<div class="highlight-text"><div class="highlight"><pre><span></span>GET /rest/bug_user_last_visit/123?ids=234&amp;ids=456
</pre></div>
</div>
<p>To return just the most recent 20 timestamps:</p>
<div class="highlight-text"><div class="highlight"><pre><span></span>GET /rest/bug_user_last_visit
</pre></div>
</div>
<table border="1" class="docutils">
<colgroup>
<col width="13%" />
<col width="9%" />
<col width="79%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><strong>id</strong></td>
<td>int</td>
<td>An integer bug id.</td>
</tr>
<tr class="row-odd"><td><strong>ids</strong></td>
<td>array</td>
<td>One or more optional bug ids to get.</td>
</tr>
</tbody>
</table>
<p><strong>Response</strong></p>
<div class="highlight-js"><div class="highlight"><pre><span></span><span class="p">[</span>
  <span class="p">{</span>
    <span class="s2">&quot;id&quot;</span> <span class="o">:</span> <span class="mi">100</span><span class="p">,</span>
    <span class="s2">&quot;last_visit_ts&quot;</span> <span class="o">:</span> <span class="s2">&quot;2014-10-16T17:38:24Z&quot;</span>
  <span class="p">}</span>
<span class="p">]</span>
</pre></div>
</div>
<p>An array of objects containing the following items:</p>
<table border="1" class="docutils">
<colgroup>
<col width="20%" />
<col width="12%" />
<col width="68%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">name</th>
<th class="head">type</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td>id</td>
<td>int</td>
<td>The bug id.</td>
</tr>
<tr class="row-odd"><td>last_visit_ts</td>
<td>datetime</td>
<td>The timestamp the user last visited the bug.</td>
</tr>
</tbody>
</table>
<hr class="docutils" />
<p>This documentation undoubtedly has bugs; if you find some, please file
them <a class="reference external" href="https://bugzilla.mozilla.org/enter_bug.cgi?product=Bugzilla&amp;component=Documentation">here</a>.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
        <div class="sphinxsidebarwrapper">
            <p class="logo"><a href="../../../index.html">
              <img class="logo" src="../../../_static/bugzilla.png" alt="Logo"/>
            </a></p>
  <h3><a href="../../../index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">6.1.4. Bug User Last Visited</a><ul>
<li><a class="reference internal" href="#update-last-visited">6.1.4.1. Update Last Visited</a></li>
<li><a class="reference internal" href="#get-last-visited">6.1.4.2. Get Last Visited</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="bug.html"
                        title="previous chapter">6.1.3. Bugs</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="bugzilla.html"
                        title="next chapter">6.1.5. Bugzilla Information</a></p>
<div id="searchbox" style="display: none" role="search">
  <h3>Quick search</h3>
    <form class="search" action="../../../search.html" method="get">
      <div><input type="text" name="q" /></div>
      <div><input type="submit" value="Go" /></div>
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="related navigation">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="bugzilla.html" title="6.1.5. Bugzilla Information"
             >next</a></li>
        <li class="right" >
          <a href="bug.html" title="6.1.3. Bugs"
             >previous</a> |</li>
        <li class="nav-item nav-item-0"><a href="../../../index.html">Bugzilla 5.0.4 documentation</a> &#187;</li>
          <li class="nav-item nav-item-1"><a href="../../index.html" >6. WebService API Reference</a> &#187;</li>
          <li class="nav-item nav-item-2"><a href="index.html" >6.1. Core API v1</a> &#187;</li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
      Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.6.
    </div>
  </body>
</html>