summaryrefslogtreecommitdiffstats
path: root/modules/daf
diff options
context:
space:
mode:
authorPetr Špaček <petr.spacek@nic.cz>2019-04-17 08:47:00 +0200
committerPetr Špaček <petr.spacek@nic.cz>2019-04-18 10:11:16 +0200
commit9f08e7f200759eeb5ad1ba3e07fd3be973babb31 (patch)
tree7f64d5a94c73b5fec5b398879e94dd644afb995e /modules/daf
parenthttp: respect socket type provided by net.listen() and systemd (diff)
downloadknot-resolver-9f08e7f200759eeb5ad1ba3e07fd3be973babb31.tar.xz
knot-resolver-9f08e7f200759eeb5ad1ba3e07fd3be973babb31.zip
http: update docs
Diffstat (limited to 'modules/daf')
-rw-r--r--modules/daf/README.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/daf/README.rst b/modules/daf/README.rst
index 24ca5040..32b69c51 100644
--- a/modules/daf/README.rst
+++ b/modules/daf/README.rst
@@ -107,11 +107,11 @@ for testing.
.. code-block:: bash
# Get current rule set
- $ curl -s -X GET http://localhost:8053/daf | jq .
+ $ curl -s -X GET http://localhost:8453/daf | jq .
{}
# Create new rule
- $ curl -s -X POST -d "src = 127.0.0.1 pass" http://localhost:8053/daf | jq .
+ $ curl -s -X POST -d "src = 127.0.0.1 pass" http://localhost:8453/daf | jq .
{
"count": 0,
"active": true,
@@ -120,11 +120,11 @@ for testing.
}
# Disable rule
- $ curl -s -X PATCH http://localhost:8053/daf/1/active/false | jq .
+ $ curl -s -X PATCH http://localhost:8453/daf/1/active/false | jq .
true
# Retrieve a rule information
- $ curl -s -X GET http://localhost:8053/daf/1 | jq .
+ $ curl -s -X GET http://localhost:8453/daf/1 | jq .
{
"count": 4,
"active": true,
@@ -133,5 +133,5 @@ for testing.
}
# Delete a rule
- $ curl -s -X DELETE http://localhost:8053/daf/1 | jq .
+ $ curl -s -X DELETE http://localhost:8453/daf/1 | jq .
true