Quote:
Originally Posted by kran
Thanks a lot !
(Just to know if I can modify what I want, is this under GPL license ?)
|
Sure but keep in mind that the API will evolve in the near future.
We'll have a RESTful API.
For exemple you'll be able to access a book in XML with this type of request: GET /book/id.xml
or in JSON: GET /book/id.json
To search for a book it'll be: GET /books/search?query=yourquery
... for an author: GET /authors/search?query=yourquery
We'll have tons of resources available this way. The first version of the API will be mostly GET requests (read) but we'll add the possibility to create books, authors, newspapers in the second release (the rest of the CRUD actions: Create, Update and Delete).
I've included an example of a search with the new API. If you'd like to study examples of REST API, try Digg or Twitter.