瀏覽代碼

add format param to search api

Noémi Ványi 7 年之前
父節點
當前提交
d8e44f070b
共有 4 個檔案被更改,包括 9 行新增1 行删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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
文件差異過大導致無法顯示
查看文件