anchor.diff:  -spec delete_resource(ReqData::tuple(), State::string()) -> {string(), tuple(), string()}.
   delete_resource(ReqData, State) ->
   	Id = proplists:get_value('resourceid', wrq:path_info(ReqData)),
  -	erlang:display("delete request - check permission here"),
  +	erlang:display("DELETE request - check permission here"),
   	%% TODO Authentication
   	case erlastic_search:get_doc(?INDEX, "resource", Id,  [{"fields", "_source.streams"}]) of
   			{ok,{struct,Json}} ->
  
positive.code: 							{remove_search_part(make_to_string(json_encode(List)),false,0), ReqData, State} % Maybe need to convert
  					end;
  				ResourceId ->
  				        erlang:display("Value defined"),
  				% Get specific resource
  					case erlastic_search:get_doc(?INDEX, "resource", ResourceId) of 
  						{error,_Msg} -> 
  
negative.code: %% @end
  -spec get_resource(ReqData::tuple(), State::string()) -> {list(), tuple(), string()}.
  get_resource(ReqData, State) ->
  	erlang:display("GET request"),
  	case is_search(ReqData) of
  		false ->
  			case proplists:get_value('resourceid', wrq:path_info(ReqData)) of
  				undefined ->
  				% List resources based on URI
  					case proplists:get_value('userid', wrq:path_info(ReqData)) of
  						undefined ->
  							Query = [];
  