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
})
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:
But as always I'm open to suggestions 😄