api/app/controllers/spree/api/v2/platform/shipping_methods_controller.rb
module Spree
module Api
module V2
module Platform
class ShippingMethodsController < ResourceController
private
def model_class
Spree::ShippingMethod
end
def spree_permitted_attributes
super + [
{
shipping_category_ids: [],
calculator_attributes: {}
}
]
end
end
end
end
end
end