Skip to content
Mark Tyers edited this page Mar 5, 2014 · 13 revisions

Adds the book based on the supplied ISBN number

Authentication

None

Resource URL

http://.../book

Parameters


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

Example Request

http://.../book/9780439023481
"keywords=web%20dev,%20programming"

Example Response

{
    "code": "success",
    "message": "Book 'Developing With Couchbase Server' added"
}

cURL Test

curl -i -H "Authorization: Basic ZnJlZDpmcmVk" -X PUT -d "genre=24" http://localhost:3000/book/9781407139807

Clone this wiki locally