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

jbuilder vs active model serializers #13

Closed
camallen opened this issue May 30, 2014 · 5 comments
Closed

jbuilder vs active model serializers #13

camallen opened this issue May 30, 2014 · 5 comments

Comments

@camallen
Copy link
Contributor

I think we should use active model serializers.
Thoughts?

@edpaget edpaget changed the title jbuilder vs active mode serializers jbuilder vs active model serializers Jun 2, 2014
@edpaget
Copy link
Contributor

edpaget commented Jun 2, 2014

I spent some time this morning looking at various Rails serialization libraries. It looks like there are two that seem to have advantages over ActiveModel::Serializers.

  • RestPack::Serializer seems like it is more up-to-date with the JSON API spec that AMS also implements.
  • Oat looks like it offers more flexibility in terms of output formats.

@brian-c does going with something JSON API based sound good to you? I'll start converting the Apiary stuff I've written to look like that instead.

@brian-c
Copy link
Contributor

brian-c commented Jun 2, 2014

JSON API looks sweet. Is the idea that everything is returned in a list by its type, and then referenced by its ID under the links key so nothing is nested? That'll make it super easy to manage model instances in the browser. This is kinda amazing.

@parrish
Copy link
Contributor

parrish commented Jun 2, 2014

I'm both in favor of JSON API and RestPack.
RestPack also looks like a much cleaner/less wacky implementation than Oat

@edpaget
Copy link
Contributor

edpaget commented Jun 2, 2014

Great I'll start updating the apiary docs I'm writing to look like JSON API
On Jun 2, 2014 11:36 AM, "Michael Parrish" notifications@github.com wrote:

I'm both in favor of JSON API and RestPack.
RestPack also looks like a much cleaner/less wacky implementation than Oat


Reply to this email directly or view it on GitHub
#13 (comment).

edpaget pushed a commit that referenced this issue Jun 3, 2014
@camallen
Copy link
Contributor Author

camallen commented Jun 3, 2014

A bit late but I prefer the JSON API format. RestPack::Serializer looks good to use and comes with paging built in. Nice find Ed!

@edpaget edpaget closed this as completed Jun 5, 2014
edpaget added a commit that referenced this issue Apr 29, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants