   plug :action
 
   # GET /products/:product_name/deployments
-  def index(conn, %{"product_name" => product_name} = params) do
+  def index(conn, %{"product_name" => product_name} = _params) do
     product_name
     |> URI.decode
     |> get_product_by_name

    end
  end

<<<<<<< HEAD
  @spec execute(term, [any]) :: term
  def execute(conn, %{"id" => id} = params) do
#    raw_workflow = get_workflow(id)
    
    raw_workflow = %{}

    cond do
      #raw_workflow == nil -> resp(conn, :not_found, "")
      raw_workflow.workflow_completed == true -> resp(conn, :conflict, "Workflow has already completed")
      raw_workflow.current_step != nil -> resp(conn, :conflict, "Workflow has already been started")
      true ->
        #payload = List.first(convert_raw_workflows([raw_workflow]))
        payload = nil
        if params["force_build"] != nil do
          payload = Map.put(payload, :force_build, params["force_build"])
        end

        build_messaging_exchange_id = to_string(params["build_messaging_exchange_id"])
        if String.length(build_messaging_exchange_id) > 0 do
          payload = case Integer.parse(build_messaging_exchange_id) do
            {messaging_exchange_id, _} -> Map.put(payload, :build_messaging_exchange_id, messaging_exchange_id)
            :error -> payload
          end
        end

        deploy_messaging_exchange_id = to_string(params["deploy_messaging_exchange_id"])
        if String.length(deploy_messaging_exchange_id) > 0 do
          payload = case Integer.parse(deploy_messaging_exchange_id) do
            {messaging_exchange_id, _} -> Map.put(payload, :deploy_messaging_exchange_id, messaging_exchange_id)
            :error -> payload
          end
        end        
=======
  # @spec execute(term, [any]) :: term
  # def execute(conn, %{"id" => id} = params) do
  #   raw_workflow = get_workflow(id)

        conn
        |> put_status(:not_found)
        |> json ResponseBodyFormatter.error_body(:not_found, "ProductDeployment")
      _product ->
#        if params["page"] == nil do 
#          params["page"] = 0
