Skip to content

Commit

Permalink
Added JSON content-type to README, updated location of grape-with-roa…
Browse files Browse the repository at this point in the history
…r. [ci skip]
  • Loading branch information
dblock committed Mar 15, 2016
1 parent c8dba46 commit 5d3f4d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Hyperclient is a Hypermedia API client written in Ruby. It fully supports [JSON

## Usage

The examples in this README use the [Splines Demo API](https://github.com/dblock/grape-with-roar) running [here](https://grape-with-roar.herokuapp.com/api). If you're upgrading from a previous version, please make sure to read [UPGRADING](UPGRADING.md).
The examples in this README use the [Splines Demo API](https://github.com/ruby-grape/grape-with-roar) running [here](https://grape-with-roar.herokuapp.com/api). If you're upgrading from a previous version, please make sure to read [UPGRADING](UPGRADING.md).

### API Client

Expand Down Expand Up @@ -199,6 +199,7 @@ describe Acme::Api do

let(:client) do
Hyperclient.new('http://example.org/api') do |client|
client.headers['Content-Type'] = 'application/json'
client.connection(default: false) do |conn|
conn.request :json
conn.response :json
Expand All @@ -213,7 +214,7 @@ describe Acme::Api do
end
```

For a complete example refer to [this Splines Demo API test](https://github.com/dblock/grape-with-roar/blob/master/spec/api/splines_endpoint_with_hyperclient_spec.rb).
For a complete example refer to [this Splines Demo API test](https://github.com/ruby-grape/grape-with-roar/blob/master/spec/api/splines_endpoint_with_hyperclient_spec.rb).

## Reference

Expand Down

0 comments on commit 5d3f4d1

Please sign in to comment.