Use REST's getApiPrefix.
Minor update on rest server.