Skip to content

Commit

Permalink
update version, changelog, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arsduo committed Oct 11, 2012
1 parent 475ec19 commit bb39742
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions changelog.md
@@ -1,3 +1,6 @@
v0.2.1
* Default the method to GET if no method is specified

v0.2.0
* Refactor app to use internal middlewares for handling operations
* Refactor JSON decoding to a middleware
Expand Down
2 changes: 1 addition & 1 deletion lib/batch_api/version.rb
@@ -1,3 +1,3 @@
module BatchApi
VERSION = "0.2.0"
VERSION = "0.2.1"
end
14 changes: 9 additions & 5 deletions readme.md
Expand Up @@ -49,13 +49,17 @@ As you can see from the example above, each request in the batch (an
would include:

* _url_ - the API endpoint to hit, formatted exactly as you would for a regular
REST API request (e.g. leading /, etc.)
* _method_ - what type of request to make -- GET, POST, PUT, etc.
REST API request, leading / and all. (required)
* _method_ - what type of request to make -- GET, POST, PUT, etc. If no method
is supplied, GET is assumed. (optional)
* _args_ - a hash of arguments to the API. This can be used for both GET and
PUT/POST/PATCH requests.
* _headers_ - a hash of request-specific headers. (The headers sent in the
PUT/POST/PATCH requests. (optional)
* _headers_ - a hash of request-specific headers. The headers sent in the
request will be included as well, with operation-specific headers taking
precendence.)
precendence. (optional)
* _silent_ - whether to return a response for this request. You can save on
transfer if, for instance, you're making several PUT/POST requests, then
executing a GET at the end.

These individual operations are supplied as the "ops" parameter in the
overall request. Other options include:
Expand Down

0 comments on commit bb39742

Please sign in to comment.