malomalo / sunstone

A library for interacting with REST APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 fitler / etc...

TODO:

Make cookie_store and optional stream building model instances with wankel

About

A library for interacting with REST APIs

License:MIT License


Languages

Language:Ruby 100.0%