anchor.diff:                      end;
                   true ->
                       erlang:display("SUBSCRIPTION!"),
  -                    Id = id_from_path(ReqData),
  +                    Id = api_help:id_from_path(ReqData),
                       {Json,_,_} = api_help:json_handler(ReqData,State),
                       StreamId = case lib_json:get_field(Json,"stream_id") of
                           undefined ->
  
positive.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
                  ["users", Id] ->string:to_lower(Id);
                  _ -> undefined
              end;
          Id ->  string:to_lower(Id)
      end.
  
  
  %% @doc
  %% Function: add_server_side_fields/1
  %% Purpose: Used to add all the fields that should be added server side
  
negative.code:             case api_help:is_auth_redirect(ReqData) of
                  true  -> process_auth_redirect(ReqData, State);
                  false ->
                      case openidc:auth_request(ReqData) of
                          {ok, _} -> Do_get_user();
                          {error, Msg} -> {{halt, 403}, wrq:set_resp_body(Msg, ReqData), State}
                      end
              end
      end.
  
  
  -spec get_user_model(ReqData::tuple(), State::string()) -> {list(), tuple(), string()}.
  get_user_model(ReqData, State) ->
      case api_help:id_from_path(ReqData) of
          undefined -> % Get all users
              case wrq:get_qs_value("size",ReqData) of
                  undefined ->
  