Re: [Architecture] [APIM] Improving the functionality to delete applications using the API Controller by considering the -o (--owner) flag

2020-07-06 Thread Wasura Wattearachchi
Hi all, Thank you for the clarification @Uvindra Dias Jayasinha . I agree with you. Also, I checked Admin v1 POST /applications/{applicationId}/change-owner REST API as @Fazlan Nazeem stated. To highlight the main drawback of this REST API, please consider the below example. Assume there are

Re: [Architecture] [APIM] Improving the functionality to delete applications using the API Controller by considering the -o (--owner) flag

2020-07-06 Thread Wasura Wattearachchi
Hi all, Sure, will consider the option stated by @Fazlan Nazeem for Step 2. Thanks for your opinion. Adding to the first email, a correction should be made in Step 1 -> Solution 1 as below. (The corrected changes are in bold.) Solution 1 There is an existing resource in Admin v1 as GET

Re: [Architecture] [APIM] Improving the functionality to delete applications using the API Controller by considering the -o (--owner) flag

2020-07-06 Thread Uvindra Dias Jayasinha
I don't think this is the purpose of the owner flag. Even APIM does not support users in the same tenant deleting Apps created by another user. I think the reason the owner flag is because different users can create Apps having the same name. For example, all users have a DefaultApplication

[Architecture] [APIM] Improving the functionality to delete applications using the API Controller by considering the -o (--owner) flag

2020-07-06 Thread Wasura Wattearachchi
Hi all, Currently, the API Controller provides “apictl delete app” command which consists of the below flags [1]. Flags: -e, --environment string Environment from which the Application should be deleted -h, --help help for app -n, --name string