Ver código fonte

add format param to search api

Noémi Ványi 7 anos atrás
pai
commit
d8e44f070b
4 arquivos alterados com 9 adições e 1 exclusões
  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 Ver arquivo

@@ -31,3 +31,5 @@ Parameters
31 31
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
32 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 Ver arquivo

@@ -90,6 +90,10 @@
90 90
 <td>Time range of search</td>
91 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 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 97
 </tbody>
94 98
 </table>
95 99
 </div>

+ 2
- 0
docs/dev/search_api.rst Ver arquivo

@@ -31,3 +31,5 @@ Parameters
31 31
 +------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
32 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
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo