Pārlūkot izejas kodu

generated files of parent

Noemi Vanyi 8 gadus atpakaļ
vecāks
revīzija
e2ce068eb7
2 mainītis faili ar 19 papildinājumiem un 19 dzēšanām
  1. 15
    15
      _sources/dev/search_api.txt
  2. 4
    4
      dev/search_api.html

+ 15
- 15
_sources/dev/search_api.txt Parādīt failu

@@ -16,18 +16,18 @@ Furthermore, two enpoints ``/`` and ``/search`` are available for querying.
16 16
 Parameters
17 17
 ``````````
18 18
 
19
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
20
-| Name             | Description                                                                                        |                             |
21
-+==================+====================================================================================================+=============================+
22
-| ``q``            | The search query, see :doc:`/user/search_syntax`                                                   | required                    |
23
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
24
-| ``categories``   | Comma separated list, specifies the active search categories                                       | optional                    |
25
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
26
-| ``engines``      | Comma separated list, specifies the active search engines                                          | optional                    |
27
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
28
-| ``lang``         | Code of the language                                                                               | optional (default: ``all``) |
29
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
30
-| ``pageno``       | Search page number                                                                                 | optional (default: ``1``)   |
31
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
32
-| ``time_range``   | Time range of search                                                                               | optional                    |
33
-+------------------+----------------------------------------------------------------------------------------------------+-----------------------------+
19
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
20
+| Name             | Description                                                                                        |                                                  |
21
++==================+====================================================================================================+==================================================+
22
+| ``q``            | The search query, see :doc:`/user/search_syntax`                                                   | required                                         |
23
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
24
+| ``categories``   | Comma separated list, specifies the active search categories                                       | optional                                         |
25
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
26
+| ``engines``      | Comma separated list, specifies the active search engines                                          | optional                                         |
27
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
28
+| ``lang``         | Code of the language                                                                               | optional (default: ``all``)                      |
29
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
30
+| ``pageno``       | Search page number                                                                                 | optional (default: ``1``)                        |
31
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+
32
+| ``time_range``   | Time range of search                                                                               | optional (possible: ``day``, ``month``, ``year``)|
33
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+

+ 4
- 4
dev/search_api.html Parādīt failu

@@ -53,9 +53,9 @@
53 53
 <h2>Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
54 54
 <table border="1" class="docutils">
55 55
 <colgroup>
56
-<col width="12%" />
57
-<col width="68%" />
58
-<col width="20%" />
56
+<col width="11%" />
57
+<col width="60%" />
58
+<col width="30%" />
59 59
 </colgroup>
60 60
 <thead valign="bottom">
61 61
 <tr class="row-odd"><th class="head">Name</th>
@@ -86,7 +86,7 @@
86 86
 </tr>
87 87
 <tr class="row-odd"><td><code class="docutils literal"><span class="pre">time_range</span></code></td>
88 88
 <td>Time range of search</td>
89
-<td>optional</td>
89
+<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>
90 90
 </tr>
91 91
 </tbody>
92 92
 </table>