README.md in api-responder-1.0.0 vs README.md in api-responder-1.0.1
- old
+ new
@@ -1,6 +1,6 @@
-# Responders::ApiResponder
+# Responders::ApiResponder [](https://travis-ci.org/jgraichen/api-responder)
`ApiResponder` simplifies version dependent rendering of API resources using a custom responder and a mixin for decorators or models (decorators are recommended).
## Installation
@@ -24,11 +24,11 @@
class AppResponder < Responder
include Responders::ApiResponder
end
class MyController < ApplicationController
- self.responder = ApiResponder
+ self.responder = AppResponder
end
```
Or use it with [plataformatec/responders](https://github.com/plataformatec/responders):
@@ -72,11 +72,11 @@
return $1 if request.headers["Accept"] =~ /vnd\.myapp.v(\d+)/
end
end
```
-I recommend using `ApiResponder` in combination with [jgraichen/decorate-responder](/jgraichen/decorate-responder) and the decorator pattern (like [draper](/drapergem/draper)):
+I recommend using `ApiResponder` in combination with [jgraichen/decorate-responder](https://github.com/jgraichen/decorate-responder) and the decorator pattern (like [draper](https://github.com/drapergem/draper)):
```ruby
class User < ActiveRecord::Base
attr_accessible :id, :first_name, :last_name
end
@@ -125,10 +125,10 @@
rescue_from ApiResponder::Formattable::UnsupportedVersion do
head :not_acceptable
end
```
-Check out [jgraichen/paginate-responder](/jgraichen/paginate-responder) for automagic pagination support including HTTP Link headers.
+Check out [jgraichen/paginate-responder](https://github.com/jgraichen/paginate-responder) for automagic pagination support including HTTP Link headers.
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)