configurable endpoint, parsing url parts