Revert "removes path for rest mock services"

This reverts commit 6c6c645a52d73c10be7b7118bda4e67d1aec9c10.
Support dispatching based on mock service path
Dont remove service path when it is only a slash