I tried editing the RESTful API page to add the following information,
but the page appears to be locked (I get a "Permission denied" error
when I log in and hit the Edit button).

The page currently says:

# curl fails because it doesn't escape query parameter
$ wget -q -O - 'http://openlibrary.org/query.json?query={"type":
"/type/edition", "authors": "/authors/OL1A", "title": null, "limit":
2}'

You can tell curl to escape the query parameter using the
--data-urlencode argument, and then force it to send a GET request
instead of a POST request via the --get argument as follows:

$ curl --get --data-urlencode query='{"type": "/type/edition",
"authors": "/authors/OL1A", "title": null, "limit": 2}'
http://openlibrary.org/query.json

As an aside, it might be helpful to state that queries and content
requests only accept GET requests (even though that might be implicit
in it being a RESTful API).
_______________________________________________
Ol-tech mailing list
[email protected]
http://mail.archive.org/cgi-bin/mailman/listinfo/ol-tech
To unsubscribe from this mailing list, send email to 
[email protected]

Reply via email to