From 3a6acecf3551e9ccf390cbc31563ab8889fbd5ba Mon Sep 17 00:00:00 2001 From: Daniel Perna Date: Wed, 24 Jan 2018 00:50:52 +0100 Subject: [PATCH] Formatting the API endpoints --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7c05eb4..4204226 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,8 @@ The way this is implemented works in the following order: Starting at version 0.2.5 you can add / remove IP addresses and networks from and to the `ALLOWED_NETWORKS` and `BANNED_IPS` lists at runtime. Keep in mind though, that these changes are not persistent and will be lost when the service is restarted. The API can be used through the UI in the _Network status_ menu or by sending POST requests to: -- api/allowed_networks (Example JSON-POST data: `{"network":"192.168.0.0/16", "method":"add"}` [methods can be `add` and `remove`]) -- api/banned_ips (Example JSON-POST data: `{"ip":"1.2.3.4", "method":"ban"}` [methods can be `ban` and `unban`]) +- `api/allowed_networks` (Example JSON-POST data: `{"network":"192.168.0.0/16", "method":"add"}` [methods can be `add` and `remove`]) +- `api/banned_ips` (Example JSON-POST data: `{"ip":"1.2.3.4", "method":"ban"}` [methods can be `ban` and `unban`]) ### Embedding into HASS HASS has the [panel_iframe](https://home-assistant.io/components/panel_iframe/) component. With this it is possible to embed the configurator directly into HASS, allowing you to modify your configuration through the HASS frontend.