Re:Requests: HTTP for Humans
by ollysb on Sunday August 14, 2011 @06:34AM
(#2883328)
Restlet is a good attempt at writing an api that matches the http spec well. You can find docs for a client at http://wiki.restlet.org/docs_2.1/13-restlet/21-restlet/318-r.... It's still more verbose than it might be, would be a good starting point for writing a decent api though.
[ Parent
| on HN ]
Restlet is a server framework.
I think the parent poster is looking for a client API that is nicer to use than java.net.Url and/or the various versions of HTTPClient
From the restlet home page "Do you want to blend your web services, web sites and web clients into
unified web applications exposing and consuming RESTful web APIs?"
The link I provided was to an example of using restlet on the client side. I would agree that the api is not as human friendly as it could be but it does describe interactions in a restful which is why I suggested it would be a good starting point for writing a friendly api.