Add rest for adding and updating resource, app and policy of api. Testing.