Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interchangeable API adapters #18

Open
victor-am opened this issue Nov 11, 2017 · 0 comments
Open

Interchangeable API adapters #18

victor-am opened this issue Nov 11, 2017 · 0 comments

Comments

@victor-am
Copy link
Owner

victor-am commented Nov 11, 2017

Allow a set of official adapters (like ActiveModelSerializer's JSON API, Attributes, etc) and the possibility of passing a custom adapter to the Rails Ranger client.

I thought something like that:

import RailsRanger from 'rails-ranger'

//
// Official adapter
//
const api = new RailsRanger({
  adapter: 'officialAdapterName'
})

//
// Custom adapter
//
const myAdapter = {
  // Some object describing the adapter
}

const api = new RailsRanger({
  adapter: myAdapter
})

But as always I'm open to suggestions 😄

@victor-am victor-am added this to the v1.0 milestone Nov 11, 2017
@victor-am victor-am removed this from the v1.0 milestone Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant