--
You received this message because you are subscribed to the Google Groups "rails-api-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-api-cor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-api-core+unsubscribe@googlegroups.com.
Hi everyone,
Adrian, thank you for taking some much needed stewardship. I hope it can be a turning point to help AMS to be what many wanted it to be.
We set out building a new API 6 months ago, and initially chose AMS and JSON-API. I can say the experience was very frustrating. It seemed impossible to get bug fix PRs merged, which gave us very little confidence in the project.
Eventually I wrote Yaks Serializers to suit our needs. (https://github.com/plexus/yaks). It looks a lot like the AMS DSL but supports multiple formats out of the box, including JSON API and HAL, and is completely independent of Rails. We're using it in production to serve HAL to an Ember app.
So maybe there are some ideas to take from there as well. I would be happy to bounce some ideas around.
Cheers,
Arne
To unsubscribe from this group and stop receiving emails from it, send an email to rails-api-cor...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-api-cor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Adrian, I agree it's important to support AMS, this is where the mindshare and the community is, and it's a piece of the Rails API puzzle.
It's also often mentioned in the same breath as JSON API, even though it's not actually compliant with the spec. Mike, I agree that HAL is already a more established format. I also think there's room for an "almost hypermedia" format like JSON API. Because of the people involved it makes sense for AMS to be one of its implementations.
To get a bit more concrete, I think questions that need answering include
1) does AMS keep support for the formats it currently emits (IIRC there are at least three different types of output based on flags)
2) will it go to an abstract representation plus format adapters rather than serializing in one pass? This is what yaks does, and from the sound of it oak as well. It would probably be a little less performant, but I think it's the only sane approach. It would also make supporting HAL or other formats straightforward.
Answering these questions should make it easier to decide what is and what isn't in scope.
Arne