Skip to content
forked from malomalo/sunstone

A library for interacting with REST APIs

License

Notifications You must be signed in to change notification settings

knotel/sunstone

 
 

Repository files navigation

Sunstone

Sunstone is an ActiveRecord adapter for quering APIs conforming to Standard API.

Configuration

Rails

Add sunstone to your Gemfile:

gem 'sunstone'

Update config/database.yml"

development:
  adapter: sunstone
  url: https://mystanda.rd/api
  api_key: ..optional..
  user_agent: ..optional..

Standalone ActiveRecord

Initialize the connection on ActiveRecord::Base or your abstract model (ApplicationRecord for example)

ActiveRecord::Base.establish_connection(
  adapter: 'sunstone',
  url: 'https://mystanda.rd/api'
)

Usage

Mention filter / etc...

TODO:

Make cookie_store and optional stream building model instances with wankel

About

A library for interacting with REST APIs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%