anchor.diff:  -export([allowed_methods/2,
            create_path/2,
            from_json/2,
  -         resource_exists/2,
  -         to_json/2]).
  +         resource_exists/2]).
   
   init(Config) ->
       chef_wm_base:init(?MODULE, Config).
  
positive.code: allowed_methods(Req, State) ->
      {['GET','POST'], Req, State}.
  
  validate_request('GET', Req, State) ->
      {Req, State};
  validate_request('POST', Req, #base_state{resource_state = RoleState} = State) ->
      Body = wrq:req_body(Req),
      {ok, Role} = chef_role:parse_binary_json(Body, create),
  
negative.code:                                            role_authz_id = AuthzId}} = State) ->
      chef_wm_base:create_from_json(Req, State, chef_role, {authz_id, AuthzId}, RoleData).
  
  malformed_request_message(Any, _Req, _State) ->
      error({unexpected_malformed_request_message, Any}).
  