commit 3b2f8b7e8b4260f2ccc6ba49c1b9498185443cc5 parent 8c81aecb567d04f70f9b9e41bf8e80b1e5a123de Author: Andreas Gruhler <andreas.gruhler@adfinis.com> Date: Sat, 16 Sep 2023 23:44:53 +0200 doc: add usage section to readme Diffstat:
M | README.md | | | 13 | ++++++++++++- |
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -2,11 +2,22 @@ A curlable free/busy scheduler with CalDAV integration. -## Running +## Running the Server ```bash go run . ``` +## Usage +For example, to get the availability in the next week: +``` +curl http://127.0.0.1:3737/week/$(($(date +%W)+1)) +``` + +To query the availability in the current week: +``` +curl http://127.0.0.1:3737 +``` + ## Building ```bash make