Procházet zdrojové kódy

add possible values of time_range param

Noemi Vanyi před 8 roky
rodič
revize
b7fda2702b
1 změnil soubory, kde provedl 15 přidání a 15 odebrání
  1. 15
    15
      docs/dev/search_api.rst

+ 15
- 15
docs/dev/search_api.rst Zobrazit soubor

@@ -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
++------------------+----------------------------------------------------------------------------------------------------+--------------------------------------------------+