Issue static memory - problem in finding basepath of api and resource solved.