From 136e13c7e819cda6971d372ede6349fd7af3c442 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 1 Apr 2017 19:16:45 -0700
Subject: [PATCH] Update README to reflect JSON instead of plaintext body

---
 README.md | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 15dc114..0e319ec 100644
--- a/README.md
+++ b/README.md
@@ -14,11 +14,12 @@ Slash command to record completed tasks as WordPress posts
 
 ## Usage:
 
-1. Make a POST request to `/log` with a POST body that contains the item to record
-
-For example:
+1. Make a POST request to `/log` with a JSON POST body that contains the key `text` with the item to record. For example:
 
 ```
-curl -X "POST" "http://localhost:9001/log" \
-     -d "I wrote a a thing!"
+curl -X "POST" "http://127.0.0.1:9001/log" \
+     -H "Content-Type: application/json; charset=utf-8" \
+     -d $'{
+  "text": "I did a thing"
+}'
 ```
-- 
GitLab