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

Merge branch 'develop' into 'master'

Update README to reflect JSON instead of plaintext body

See merge request !4
parents d6b3d162 136e13c7
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.
Finish editing this message first!
Please register or to comment