add resource and knowledge controller spec