anchor.diff:          _ -> {false, undefined}
       end,
       {Exists, RD, Ctx#ctx{id=list_to_atom(Command), response=Response}};
  -resource_exists(RD, Ctx=?command(Command, Node1)) ->
  +resource_exists(RD, Ctx=?command(Command, Arg1)) ->
       Node = Ctx#ctx.node,
       {Exists, Response} = case Command of
           "join" ->
  -            {true, re_riak:join(Node, Node1)};
  +            {true, re_riak:join(Node, Arg1)};
           "staged-join" ->
  -            {true, re_riak:staged_join(Node, Node1)};
  +            {true, re_riak:staged_join(Node, Arg1)};
           "leave" ->
  -            {true, re_riak:leave(Node, Node1)};
  +            {true, re_riak:leave(Node, Arg1)};
           "staged-leave" ->
  -            {true, re_riak:staged_leave(Node, Node1)};
  +            {true, re_riak:staged_leave(Node, Arg1)};
           "force-remove" ->
  -            {true, re_riak:force_remove(Node, Node1)};
  +            {true, re_riak:force_remove(Node, Arg1)};
           _ -> {false, undefined}
       end,
       {Exists, RD, Ctx#ctx{id=list_to_atom(Command), response=Response}};
  -resource_exists(RD, Ctx=?command(Command, Node1, Node2)) ->
  +resource_exists(RD, Ctx=?command(Command, Arg1, Arg2)) ->
       Node = Ctx#ctx.node,
       {Exists, Response} = case Command of
           "staged-replace" ->
  -            {true, re_riak:staged_replace(Node, Node1, Node2)};
  +            {true, re_riak:staged_replace(Node, Arg1, Arg2)};
           "replace" ->
  -            {true, re_riak:replace(Node, Node1, Node2)};
  +            {true, re_riak:replace(Node, Arg1, Arg2)};
           "force-replace" ->
  -            {true, re_riak:force_replace(Node, Node1, Node2)};
  +            {true, re_riak:force_replace(Node, Arg1, Arg2)};
           _ -> {false, undefined}
       end,
       {Exists, RD, Ctx#ctx{id=list_to_atom(Command), response=Response}};
  
positive.code:         node = wrq:path_info(node, RD),
          cluster = wrq:path_info(cluster, RD),
          command = lists:nth(length(re_config:base_route("")) + 3, string:tokens(wrq:path(RD), "/")),
          node1 = maybe_atomize(wrq:path_info(node1, RD)),
          node2 = maybe_atomize(wrq:path_info(node2, RD))
      },
      {true, RD, Ctx1#ctx{node = node_from_context(Ctx1)}}.
  
  
negative.code:          provide_jsonapi_content/2,
           provide_content/2]).
  
  -record(ctx, {cluster, node, command, arg1, arg2, id, response=undefined}).
  
  -include_lib("webmachine/include/webmachine.hrl").
  -include("riak_explorer.hrl").
  
  -define(command(Command), #ctx{command=Command,arg1=undefined,arg2=undefined}).
  -define(command(Command, Arg1), #ctx{command=Command,arg1=Arg1,arg2=undefined}).
  -define(command(Command, Arg1, Arg2), #ctx{command=Command,arg1=Arg1,arg2=Arg2}).
  
  %%%===================================================================
  %%% API
  