Browse Source

add format param to search api

Noémi Ványi 7 years ago
parent
commit
d8e44f070b
4 changed files with 9 additions and 1 deletions
  1. 2
    0
      _sources/dev/search_api.txt
  2. 4
    0
      dev/search_api.html
  3. 2
    0
      docs/dev/search_api.rst
  4. 1
    1
      searchindex.js

+ 2
- 0
_sources/dev/search_api.txt View File

31
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
31
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
32
 | ``time_range``   | Time range of search                                                                               | optional (possible: ``day``, ``month``, ``year``)|
32
 | ``time_range``   | Time range of search                                                                               | optional (possible: ``day``, ``month``, ``year``)|
33
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
33
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
34
+| ``format``       | Output format of results                                                                           | optional (possible: ``json``, ``csv``, ``rss``)  |
35
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+

+ 4
- 0
dev/search_api.html View File

90
 <td>Time range of search</td>
90
 <td>Time range of search</td>
91
 <td>optional (possible: <code class="docutils literal"><span class="pre">day</span></code>, <code class="docutils literal"><span class="pre">month</span></code>, <code class="docutils literal"><span class="pre">year</span></code>)</td>
91
 <td>optional (possible: <code class="docutils literal"><span class="pre">day</span></code>, <code class="docutils literal"><span class="pre">month</span></code>, <code class="docutils literal"><span class="pre">year</span></code>)</td>
92
 </tr>
92
 </tr>
93
+<tr class="row-even"><td><code class="docutils literal"><span class="pre">format</span></code></td>
94
+<td>Output format of results</td>
95
+<td>optional (possible: <code class="docutils literal"><span class="pre">json</span></code>, <code class="docutils literal"><span class="pre">csv</span></code>, <code class="docutils literal"><span class="pre">rss</span></code>)</td>
96
+</tr>
93
 </tbody>
97
 </tbody>
94
 </table>
98
 </table>
95
 </div>
99
 </div>

+ 2
- 0
docs/dev/search_api.rst View File

31
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
31
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
32
 | ``time_range``   | Time range of search                                                                               | optional (possible: ``day``, ``month``, ``year``)|
32
 | ``time_range``   | Time range of search                                                                               | optional (possible: ``day``, ``month``, ``year``)|
33
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
33
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
34
+| ``format``       | Output format of results                                                                           | optional (possible: ``json``, ``csv``, ``rss``)  |
35
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+

+ 1
- 1
searchindex.js
File diff suppressed because it is too large
View File