I'm following this tutorial and I am having problems with the final part where we test the api by adding a Todo using this curl command...
curl -H "Content-Type: application/json" -d '{"description":"Order a tall stack of pancakes, just because."}' https://your-app-name.herokuapp.com/api/todos
When I enter this I am given the following error on the command line...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Bad Request</pre>
</body>
</html>
Any helping in explaining this error would be appreciated.
via Smurfffy
No comments:
Post a Comment