jsonapi-suite / jsonapi_compliable

MIT License
20 stars 35 forks source link

Pass in config to adapters #147

Closed thec0keman closed 5 years ago

thec0keman commented 5 years ago

We are building a custom adapter and the existing abstractions are very helpful in this process.

The one piece that would be nice is if the config option from the resource was automatically passed in to new adapters. Hacking this is simple enough, but we are finding several use cases (like storing additional configuration options in the resource and the adapter changing it's behavior based on certain filters).

richmolj commented 5 years ago

This project is becoming Graphiti and should have better internals to help here. It is on my short-term todo list to update the readme and redirect. Let me know if you run into the same issues though.

richmolj commented 5 years ago

FWIW Graphiti is the 1.0 version of this gem so is very similar, just better.

thec0keman commented 5 years ago

Awesome, thanks!