Skip to content

knotel/sunstone

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

222 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

 
 
 

Contributors

Languages

  • Ruby 100.0%