Implements rewriteApiUrl and unit testing