Commits

Author Commit Message Labels Comments Date
Andy Bennett
Respect the user's request object if they pass us one When the user passed an intarweb Request object rather than a URI to define-method, we were extracting the URI and the Method from it and using them to build a fresh Request object. This meant that the users settings for Headers and HTTP major & minor numbers was lost. Here we reuse the Request object that the user passes us and therefore preserve all their preferences. Signed-off-by: Andy Benne…
Andy Bennett
Release metadata wrangling for v0.5. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Tags
0.5
Andy Bennett
Preserve the ordering of the bound arguments. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Andy Bennett
Release metadata wrangling for v0.4. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Tags
0.4
Andy Bennett
Add support for APIs that have constant path-fragments after the arguments For example, the Bitcoin API is of the form https://data.mtgox.com/api/2/<currency>/money/ticker ...but rest-bind assumes that the arguments to the API call always come last in the path of the URI. In http://paste.call-cc.org/paste?id=7a997efc0d41d84c08b440c3d6d2070e488a86cb Alaric jumps through some hoops to bind a version of the API in which he can parameterize the currency. We now support d…
Andy Bennett
Fix up misunderstandings in the .setup, .release-info and .svnwiki file The .setup and .release-info errors were preventing v0.2 from chicken-installing properly. The missing define-method paren was preventing it from showing up in the wiki and chickadee searches. We're also great at smelling pistakes that look like puns. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Tags
0.3
Andy Bennett
Release notes for v0.2. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Tags
0.2
Andy Bennett
Tidy the documentation. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Andy Bennett
Ensure we depend on all the eggs that our generated code requires, except http-client We don't specify the egg that provides call-with-input-request. This causes the variable to remain free and therefore it binds to whatever the user has in their environment. This allows them to choose between the call-with-input-request in the oauth and http-client eggs. This patch includes a few examples of how this works. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Andy Bennett
Support the header-reader Provide a way for the caller to extract information from the headers returned in the response to their API call. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Andy Bennett
People want to know where the source is: tell them. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Andy Bennett
Core units are not supposed to be listed as Requirements. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Andy Bennett
Wiki documentation A quick write-up of what we can do so far. Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Andy Bennett
A Chicken Scheme egg release-info file ...as specified at http://wiki.call-cc.org/releasing-your-egg Signed-off-by: Andy Bennett <andyjpb@knodium.com>
Tags
0.1
Andy Bennett
Tools for generating wrappers to REST-like HTTP APIs 'define-method' generates scheme procedures that call the underlying HTTP API with the parameters given. The user can specify required arguments that are included in the path of the URL as well as optional keyword arguments that are included in the query string. The user can also specify procedures for writing the body of the HTTP request, reading the body of the response and reading the headers …