summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2015-09-30 10:27:34 -0500
committerytti <saku@ytti.fi>2015-09-30 10:27:34 -0500
commitde2b65627e4ba6151ef6bac9c6770b06e80909c7 (patch)
treee5a475cf9453aead43a5dadf51fb9d349f72ca4d
parent3de4d6d3f8d477771b6a8835348177a0faee2379 (diff)
parentc6cd643a871ea4bd9ba98635adc94c2c793c7173 (diff)
Merge pull request #209 from nickhilliard/master
Add documentation note about API URI
-rw-r--r--README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md
index f6ce764..795a741 100644
--- a/README.md
+++ b/README.md
@@ -353,6 +353,20 @@ nodiff/$FQDN--show_version
nodiff/$FQDN--show_inventory
```
+### RESTful API and Web Interface
+
+The RESTful API and Web Interface is enabled by configuring the `rest:` parameter in the config file. This parameter can optionally contain a relative URI.
+
+```
+# Listen on http://127.0.0.1:8888/
+rest: 127.0.0.1:8888
+```
+
+```
+# Listen on http://10.0.0.1:8000/oxidized/
+rest: 10.0.0.1:8000/oxidized
+```
+
### Advanced Configuration
Below is an advanced example configuration. You will be able to (optinally) override options per device. The router.db format used is ```hostname:model:username:password:enable_password```. Hostname and model will be the only required options, all others override the global configuration sections.