From 632375417dafd0ffcf8104423395b52d37a0c8cd Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 23 Aug 2019 01:27:35 +0100 Subject: [PATCH] Add apiDoc comment --- modules/feature-search.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/feature-search.php b/modules/feature-search.php index 15f8bde..dca4539 100644 --- a/modules/feature-search.php +++ b/modules/feature-search.php @@ -317,6 +317,16 @@ register_module([ exit(json_encode($result, JSON_PRETTY_PRINT)); }); + /** + * @api {get} ?action=stas-parse&query={text} Debug search queries + * @apiDescription Debug Pepperminty Wiki's understanding of search queries. + * If you want something machine-readable, check out the new stas property on the object returned by query-searchindex. + * @apiName SearchSTASParse + * @apiGroup Search + * @apiPermission Anonymous + * + * @apiParam {string} query The query string to parse. + */ add_action("stas-parse", function() { global $settings;