added request parser function to identify resource components from url locally