@user = @api_key.user
end
@user = @api_key.user
end
permission =
if @user
FactoryGirl.create :permission, subject: @user
else
FactoryGirl.create :permission
end
@repository = permission.item
@repository.path = path
end
end
end
header Api::V1::Base::API_KEY_HEADER, @api_key.try(:key)
input: {
}.to_json
end
header Api::V1::Base::API_KEY_HEADER, @api_key.try(:key)
end
end
end
end
end
end