summaryrefslogtreecommitdiff
path: root/docs/admin
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2016-07-10 08:28:00 +0200
committerGitHub <noreply@github.com>2016-07-10 08:28:00 +0200
commit7bd30fd21bbc23c485ac9fd77795314edb5dc665 (patch)
tree997b66dc3f1ab2ffb1bfbfaf551a00e8777a2306 /docs/admin
parent3e351e3b9f819d5383fd1ebafd906fdbe0c3d086 (diff)
parent521f398709ea481fdf55f1e4c111f063f91fa8c0 (diff)
Merge pull request #614 from kvch/gh-pages
documentation updates
Diffstat (limited to 'docs/admin')
-rw-r--r--docs/admin/api.rst78
1 files changed, 78 insertions, 0 deletions
diff --git a/docs/admin/api.rst b/docs/admin/api.rst
new file mode 100644
index 000000000..94508a28c
--- /dev/null
+++ b/docs/admin/api.rst
@@ -0,0 +1,78 @@
+.. _adminapi:
+
+Administration API
+------------------
+
+Get configuration data
+~~~~~~~~~~~~~~~~~~~~~~
+
+.. code:: sh
+
+ GET /config
+
+Sample response
+```````````````
+
+.. code:: sh
+
+ {
+ "autocomplete": "",
+ "categories": [
+ "map",
+ "it",
+ "images",
+ ],
+ "default_locale": "",
+ "default_theme": "oscar",
+ "engines": [
+ {
+ "categories": [
+ "map"
+ ],
+ "enabled": true,
+ "name": "openstreetmap",
+ "shortcut": "osm"
+ },
+ {
+ "categories": [
+ "it"
+ ],
+ "enabled": true,
+ "name": "arch linux wiki",
+ "shortcut": "al"
+ },
+ {
+ "categories": [
+ "images"
+ ],
+ "enabled": true,
+ "name": "google images",
+ "shortcut": "goi"
+ },
+ {
+ "categories": [
+ "it"
+ ],
+ "enabled": false,
+ "name": "bitbucket",
+ "shortcut": "bb"
+ },
+ ],
+ "instance_name": "searx",
+ "locales": {
+ "de": "Deutsch (German)",
+ "en": "English",
+ "eo": "Esperanto (Esperanto)",
+ },
+ "plugins": [
+ {
+ "enabled": true,
+ "name": "HTTPS rewrite"
+ },
+ {
+ "enabled": false,
+ "name": "Vim-like hotkeys"
+ }
+ ],
+ "safe_search": 0
+ }