anchor.diff:  %% Purpose: Retrieves the if from the path.
   %% Returns: Id
   %% @end
  +-spec id_from_path(string()) -> string().
   id_from_path(RD) ->
       case wrq:path_info(id, RD) of
           undefined->
  
positive.code: %% Purpose: Given a proplist, the return value will be a 'user' record with the values taken from the proplist.
  %% Returns: user::record()
  %% @end
  
  json_to_user(JsonData) ->
  	#user{id = proplists:get_value(<<"id">>, JsonData),
  		email = proplists:get_value(<<"email">>, JsonData), 
  
negative.code: from_json(ReqData, State) ->
  	Id = id_from_path(ReqData),
  	case get_user_from_request(ReqData) of
  		{error, _} -> {{halt, 400}, ReqData, State};
  		{ok, User} ->
  			case db_api:get_user_by_id(list_to_integer(Id)) of
  				{aborted, Reason} -> {{error, Reason}, ReqData, State};
  