Skip to content

Json api#80

Open
amkirwan wants to merge 9 commits intotrailblazer:masterfrom
amkirwan:json_api
Open

Json api#80
amkirwan wants to merge 9 commits intotrailblazer:masterfrom
amkirwan:json_api

Conversation

@amkirwan
Copy link
Copy Markdown

This pull request adds support for JsonApi to Roar-Rails.

This pull request currently uses the master branch for Roar because the last released gem v0.12.9 does not support JsonApi. However the current master branch of Roar does support JsonApi.

makes it easier to specify the URL of the resource with the
"href" key. For example:

module UserRepresenter
  include Roar::JSON::JsonApi

  type :user
  property :id
  property :username

  property :href

  def href
    user_url self
  end
end
@apotonick
Copy link
Copy Markdown
Member

Awesome work! I will release Roar 1.0 when I'm back in Oz next week, then we can hack roar-rails 1.0. Cool?

@amkirwan
Copy link
Copy Markdown
Author

sounds good. thanks.

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

Successfully merging this pull request may close these issues.

2 participants