Add Book API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Library |
New
|
Wishlist
|
Anand Chitipothu |
Bug Description
It will be nice to expose the add book process through an API. It should take title, author, publisher, publish_date and ISBN and return key of the existing edition or new edition. The API can optionally take work_key or author_key.
POST /books/add.json
{"title": "Building Scalable Web Sites", "author": "Cal Henderson", "publisher": "O'Reilly", "publish_date": 2006", "isbn": "0596102356"}
Possible Responses:
{"status": "found", "key": "/books/
{"status": "created", "key": "/books/
{"status": "ambiguous", "works": ["/works/OL1W", "/works/OL2W"]}
{"status": "error", "reason": "insufficient input"}
Providing this API will allow library hackers to add books to Open Library from various different sources with ease.
Changed in openlibrary: | |
assignee: | nobody → Anand Chitipothu (anandology) |
importance: | Undecided → Wishlist |
tags: | added: api |
I LOVE IT. Particularly because of the "insufficient input" error.