json.extract! publickey, :id, :name, :data, :user_id, :created_at, :updated_at json.url publickey_url(publickey, format: :json)