Permalink
Browse files

Correct urls, add explicit place to edit curl commands

substitute `books` for `users` in books section of README

Add file so students aren't confused about what file I'm using
  • Loading branch information...
Antony Donovan
Antony Donovan committed Nov 5, 2015
1 parent cba12dd commit 5e834f68e0cd810d0aa8dd19e0621feebead6b8d
Showing with 12 additions and 2 deletions.
  1. +2 −2 README.md
  2. +10 −0 command-line-curl
@@ -43,13 +43,13 @@ curl --header "Authorization: Token token=c017d611187e3350baffc52d35a4df69" http
## List

```
curl --header "Authorization: Token token=c017d611187e3350baffc52d35a4df69" http://localhost:3000/users
curl --header "Authorization: Token token=c017d611187e3350baffc52d35a4df69" http://localhost:3000/books
```

**OR**

```
curl http://localhost:3000/users
curl http://localhost:3000/books
```

## Create
@@ -0,0 +1,10 @@
#!/bin/bash
# a place for editing curl commands

curl --include --request POST --header "Content-Type: application/json" -d '{
"credentials": {
"email": "an@example.email",
"password": "an example password",
"password_confirmation": "an example password"
}
}' http://localhost:3000/register

0 comments on commit 5e834f6

Please sign in to comment.