Jsonapi-resources: Disable self link within resource

Created on 10 Feb 2017  路  1Comment  路  Source: cerebris/jsonapi-resources

Is it possible to disable to show up some self link within resource?

    "links": {
      "self": "/hoges/1"
    },

Most helpful comment

We can disable links with this.

class Hoge < JSONAPI::Resource
  def custom_links(options)
    {self: nil}
  end
end

>All comments

We can disable links with this.

class Hoge < JSONAPI::Resource
  def custom_links(options)
    {self: nil}
  end
end
Was this page helpful?
0 / 5 - 0 ratings

Related issues

thedeeno picture thedeeno  路  6Comments

balinterdi picture balinterdi  路  5Comments

blmundie picture blmundie  路  4Comments

lcpriest picture lcpriest  路  3Comments

mrcasals picture mrcasals  路  4Comments