anchor.diff:                          ping/2,
                           post_is_create/2]}]).
   
  +-mixin([{chef_wm_base, [{list_objects_json/2, to_json}]}]).
  +
   -mixin([{?BASE_RESOURCE, [forbidden/2,
                             is_authorized/2,
                             service_available/2]}]).
  
positive.code: allowed_methods(Req, State) ->
      {['POST', 'GET'], Req, State}.
  
  validate_request('GET', Req, State) ->
      {Req, State#base_state{resource_state =
                                 #environment_state{}}};
  validate_request('POST', Req, State) ->
      Body = wrq:req_body(Req),
      {ok, Environment} = chef_environment:parse_binary_json(Body),
  
negative.code:     chef_wm_base:create_from_json(Req, State, chef_environment, {authz_id, AuthzId},
                                    EnvironmentData).
  
  malformed_request_message(Any, _Req, _State) ->
      error({unexpected_malformed_request_message, Any}).
  