Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tito Gonzales committed Nov 23, 2014
1 parent 3cb8056 commit c6bc1e8
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,12 @@ Rest HTTP Commands with curl
```sh
#Insert one single object
$ curl -X POST -v -H "Accept: application/json" -d 'data={"slug":"4","song":"Donna Lee"}' http://127.0.0.1:8888/song/
curl -X POST -v -H "Accept: application/json" -d "id=8008&artist=8MikeArtistMike&song=8SongToSongSong&rank=8001" http://127.0.0.1:8888/song/
curl -X GET -v -H "Accept: application/json" http://127.0.0.1:8888/song/8888d58dd1e5ba35fc062788/?id=2002
curl -X PUT -v -H "Accept: application/json" -d "artist=MikeArtistMike&song=SongToSongSong&rank=1021" http://127.0.0.1:8888/song/?id=2002
curl -X DELETE -v -H "Accept: application/json" http://127.0.0.1:8888/song/8888d58dd1e5ba35fc062788/?id=2002

#json
curl -X POST -v -H "Accept: application/json" -d 'data={"id":8008,"artist":"8MikeArtistMike", "song":"8SongToSongSong", "rank":8001}' http://127.0.0.1:8888/song/
$ curl -X POST -v -H "Accept: application/json" -d "id=8008&artist=8MikeArtistMike&song=8SongToSongSong&rank=8001" http://127.0.0.1:8888/song/
$ curl -X GET -v -H "Accept: application/json" http://127.0.0.1:8888/song/8888d58dd1e5ba35fc062788/?id=2002
$ curl -X PUT -v -H "Accept: application/json" -d "artist=MikeArtistMike&song=SongToSongSong&rank=1021" http://127.0.0.1:8888/song/?id=2002
$ curl -X DELETE -v -H "Accept: application/json" http://127.0.0.1:8888/song/8888d58dd1e5ba35fc062788/?id=2002

#bulk
curl -X POST -v -H "Accept: application/json" -d 'bulk={"insert":[{"_id":1,"song":"My Funny Valentine"},{"_id":2,"song":"500 Miles High"},{"_id":3,"song":"All of Me"}]}' http://127.0.0.1:8888/song/
$ curl -X POST -v -H "Accept: application/json" -d 'bulk={"insert":[{"_id":1,"song":"My Funny Valentine"},{"_id":2,"song":"500 Miles High"},{"_id":3,"song":"All of Me"}]}' http://127.0.0.1:8888/song/
```

0 comments on commit c6bc1e8

Please sign in to comment.