You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if we could customise the link properties. This could be used to customise href's and add extra information.
We could do something like this:
AcceptableModel::Artist
mime_types ['application/vnd.acme.artist-v1+json', 'application/vnd.acme.artist-v1+xml'] do
link do |artist|
:rel => artist.relationship,
:href => "/my-profile/artists/#{artist.id}",
:accepted_types => versions
end
end
end
The text was updated successfully, but these errors were encountered:
It would be nice if we could customise the link properties. This could be used to customise href's and add extra information.
We could do something like this:
The text was updated successfully, but these errors were encountered: