-
Notifications
You must be signed in to change notification settings - Fork 0
PUT book
marktyers edited this page Feb 2, 2014
·
13 revisions
Adds the book based on the supplied ISBN number
None
| Type | Name | Description | Example |
|---|---|---|---|
| URI | isbn | sssssss | ssssss |
| HEAD | authorisation | sssssss | ssssss |
| BODY | genre | sssssss | ssssss |
(the required genre id)
http://localhost:3000/book/9780439023481
{
"status": "success",
"selflink": "http://localhost:3000/book/9781407139807",
"book": {
"isbn": 9781407139807,
"title": "Catching Fire",
"author": "Suzanne Collins",
"cover": "http://localhost:3000/covers/9781407139807.jpg",
"year": 2013,
"genreid": 24
}
}
curl -i -H "Accept: application/json" -X PUT -d "genre=24" http://localhost:3000/book/9780439023481