Skip to content

Commit

Permalink
Fixes CURL code suggested in README
Browse files Browse the repository at this point in the history
- Previous CURL command returned `-bash: !\"}": event not found`
  • Loading branch information
EdwardAndress committed Dec 17, 2018
1 parent bf1610c commit daf8387
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ This project will ultimately be really rewarding if you follow these three point

- Temporarily, if you want to add some posts you can use `curl` to post data to the API and then refresh the page.
```
curl -X POST "localhost:8080/api/posts" -d "{\"content\": \"Hi, Folks!\"}" -H "Content-Type: application/json"
curl -X POST 'localhost:8080/api/posts' -d '{"content": "Hi, Folks!"}' -H 'Content-Type: application/json'
```

(At some point a form would be implemented sends data to the API)
Expand Down

0 comments on commit daf8387

Please sign in to comment.