app/controllers/api/v2/ext_app/containers_controller.rb
# will be deprecated in the near future
# PATCH /:hostname/update
will be deprecated in the near future
PATCH /:hostname/update
will be deprecated in the near future PATCH / : hostname / update
def update
    @cluster = ::Cluster.find_by!(name: params[:cluster_name])
    @container = @cluster.containers.exists.find_by(hostname: params[:hostname])
    @container.apply_params_with_source(params)
    @container.save!
    @container.reload
    render json: ::Api::V2::ExtApp::ContainerSerializer.new(@container).to_h
  end
def update @cluster = :: Cluster . find_by! ( name : params [ :cluster_name ] ) @container = @cluster . containers . exists . find_by ( hostname : params [ :hostname ] ) @container . apply_params_with_source ( params ) @container . save! @container . reload render json : :: Api :: V2 :: ExtApp :: ContainerSerializer . new ( @container ) . to_h end
will be deprecated in the near future
PATCH /:hostname/update
will be deprecated in the near future PATCH / : hostname / update