applying url pattern based rest style