-
Notifications
You must be signed in to change notification settings - Fork 0
PUT book
Mark Tyers edited this page Mar 5, 2014
·
13 revisions
Adds the book based on the supplied ISBN number
None
http://.../book
| Type | Name | Description | Example |
|---|---|---|---|
| URI | isbn | The ISBN of the book to add | 9780439023481 |
| HEAD | authorisation | a base64 encoded string (username:password) | QmFzaWMganNtaXRoOjEyMzQ2 |
| BODY | keywords (optional) | comma separated list of keywords | web dev, programming |
http://.../book/9780439023481
"keywords=web%20dev,%20programming"
{
"code": "success",
"message": "Book 'Developing With Couchbase Server' added"
}
curl -i -H "Authorization: Basic ZnJlZDpmcmVk" -X PUT -d "genre=24" http://localhost:3000/book/9781407139807