anchor.diff:  allowed_methods(ReqData, State) ->
   	case api_help:parse_path(wrq:path(ReqData)) of	
   		[{"vstreams"}] ->
  -			{['POST'], ReqData, State}; 
  -		[{"vstreams", _Id}] -> %to be removed?
  -			{['POST', 'PUT', 'DELETE'], ReqData, State};
  +			{['POST', 'GET'], ReqData, State}; 
  +		[{"vstreams", _Id}] ->
  +			{['POST', 'PUT', 'DELETE', 'GET'], ReqData, State};
   		[{"vstreams", "_search"}] ->
   			{['POST', 'GET'], ReqData, State};
   		[error] ->
  
positive.code: 		false ->
  			{VirtualStreamJson,_,_} = api_help:json_handler(ReqData, State),
  			{{Year,Month,Day},{Hour,Minute,Second}} = calendar:local_time(),
  			Date = api_help:generate_date([Year,Month,Day]), % it is crashing if I add Hour, Minute, Second, check it again later
  			DateAdded = lib_json:add_values(VirtualStreamJson,[{creation_date, list_to_binary(Date)}]),
  			case erlastic_search:index_doc(?INDEX, "virtual_stream", DateAdded) of	
  				{error, Reason} ->
  
negative.code: 	end.
  
  
  %% @doc
  %% Function: id_from_path/2
  %% Purpose: Retrieves the id from the path.
  %% Returns: Id
  %% @end
  -spec id_from_path(string()) -> string().
  id_from_path(RD) ->
      case wrq:path_info(id, RD) of
          undefined ->
              case string:tokens(wrq:disp_path(RD), "/") of
                  ["vstreams", Id] -> Id;
                  _ -> undefined
              end;
          Id -> Id
      end.
  
  
  %% @doc
  %% Function: msToDate/3
  