Skip to content
Snippets Groups Projects
Commit 136e13c7 authored by Erick Hitter's avatar Erick Hitter
Browse files

Update README to reflect JSON instead of plaintext body

parent 3c3ef5a1
No related branches found
No related tags found
1 merge request!4Update README to reflect JSON instead of plaintext body
...@@ -14,11 +14,12 @@ Slash command to record completed tasks as WordPress posts ...@@ -14,11 +14,12 @@ Slash command to record completed tasks as WordPress posts
## Usage: ## Usage:
1. Make a POST request to `/log` with a POST body that contains the item to record 1. Make a POST request to `/log` with a JSON POST body that contains the key `text` with the item to record. For example:
For example:
``` ```
curl -X "POST" "http://localhost:9001/log" \ curl -X "POST" "http://127.0.0.1:9001/log" \
-d "I wrote a a thing!" -H "Content-Type: application/json; charset=utf-8" \
-d $'{
"text": "I did a thing"
}'
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment