ApiBase.cs has been re factored.