Archiving this repo as it is not used anymore.
A simple alternative to the sequencescape-client-api gem, when only a few endpoints are required
Add this line to your application's Gemfile:
gem 'sequencescape_search'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sequencescape_search
- Create a SequencescapeSearch::Search per endpoint
proxy = ENV.fetch('FARADAY_PROXY','')
sequencescape_uri = ENV.fetch('SEQUENCESCAPE_URI','http://localhost:3000/api/1')
sequencescape_headers = { 'ACCEPT'=>'application/json', 'x-sequencescape-client-id'=>'development', 'Content-Type'=>' application/json'}
api_root = Faraday.new(sequencescape_uri, proxy: proxy, headers: sequencescape_headers )
search = SequencescapeSearch.new(api_root,SequencescapeSearch.plate_barcode_search)
- Call #query on the created search to retrieve the results as a hash
search.find('122345')
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request