Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Asanka Vithanage
Hi Thilini/Abimaran,

I got the rational behind the design. Thank you very much for the
explanations.

On Thu, Jul 7, 2016 at 5:45 PM, Abimaran Kugathasan 
wrote:

>
>
> On Thu, Jul 7, 2016 at 5:02 PM, Asanka Vithanage  wrote:
>
>> Hi All,
>>
>> Thanks for all the replies.
>>
>> @Roshan
>>
>> We can't remove subscriptions by going to the Application, Application
>> only lists logged in users subscriptions.
>>
>> @Lakshman/Bhathiya/Chamin
>>
>> Yes, I understand we can achieve delete API following these steps. But
>> those are actually workarounds.
>>
>> Why don't we allow API publish user to delete subscriptions to that API ?
>> So he can delete the API after removing subscriptions.
>> Even at some situations, API Published user("userPub") may want to remove
>> subscriptions selectively.I don't see a way to do that as well.
>>
>
> You can block the subscription, but only the subscriber can unsubscribe
> it.
>
>>
>>
>>
>> On Thu, Jul 7, 2016 at 4:22 PM, Chamin Dias  wrote:
>>
>>> Hi,
>>>
>>> Change the lifecycle to "Block"
>>> Then existing users (already who subscribed) cannot use the API, also
>>> new users are not able to subscribe to the blocked API.
>>> In this state also, you are not allowed to delete the API form the API
>>> publisher since there is a subscriber.
>>>
>>> If you want to delete the API, you can do the following.
>>> Change the lifecycle to "Deprecate"
>>> After that, Change the lifecycle to "Retire".
>>> Then go the home page of the API publisher, locate the API then you will
>>> see that there are "0 users" with the API. Now you should be able to delete
>>> the API.
>>>
>>> Thanks.
>>>
>>> On Thu, Jul 7, 2016 at 4:17 PM, Bhathiya Jayasekara 
>>> wrote:
>>>

 On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage 
 wrote:

> Hi All,
>
> Using API Publisher and Store, I am trying to achieve the $Subject.
> But it seems via current store and publisher UIs, we can't do that.
>
> Let's think we create two users called userPub and userSub with only
> login and Manage permissions.
> Then "userPub" login to the API Publisher and create/Publish an API.
> Then "userSub" login to the API Store and subscribe to the above  API.
> Now "userPub" want to the delete the API, But Publisher does not allow
> to delete the API due to the subscriptions.
> Now the question is how do delete the subscriptions, Though I logged
> to store with user "userPub" I can't find a way to remove the 
> subscription.
> So, as a result, I can't figure out a way to delete the API.
>
> Do we have a way to delete the API in this kind of situation?
> Appreciate your thoughts.
>

 You can demote to created and then delete.

 Thanks,
 Bhathiya


>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>


 --
 *Bhathiya Jayasekara*
 *Senior Software Engineer,*
 *WSO2 inc., http://wso2.com *

 *Phone: +94715478185 <%2B94715478185>*
 *LinkedIn: http://www.linkedin.com/in/bhathiyaj
 *
 *Twitter: https://twitter.com/bhathiyax *
 *Blog: http://movingaheadblog.blogspot.com
 *

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Chamin Dias
>>> *Software Engineer*
>>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>>> Email : cham...@wso2.com
>>> Blog : https://chamindias.wordpress.com/
>>>
>>
>>
>>
>> --
>> Asanka Vithanage
>> Senior Software Engineer -QA
>> Mobile: +94 0716286708
>> Email: asan...@wso2.com
>> WSO2 Inc. www.wso2.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks
> Abimaran Kugathasan
> Senior Software Engineer
>
> Email : abima...@wso2.com
> Mobile : +94 773922820
>
> 
> 
>   
> 
>
>


-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Abimaran Kugathasan
On Thu, Jul 7, 2016 at 5:02 PM, Asanka Vithanage  wrote:

> Hi All,
>
> Thanks for all the replies.
>
> @Roshan
>
> We can't remove subscriptions by going to the Application, Application
> only lists logged in users subscriptions.
>
> @Lakshman/Bhathiya/Chamin
>
> Yes, I understand we can achieve delete API following these steps. But
> those are actually workarounds.
>
> Why don't we allow API publish user to delete subscriptions to that API ?
> So he can delete the API after removing subscriptions.
> Even at some situations, API Published user("userPub") may want to remove
> subscriptions selectively.I don't see a way to do that as well.
>

You can block the subscription, but only the subscriber can unsubscribe it.


>
>
>
> On Thu, Jul 7, 2016 at 4:22 PM, Chamin Dias  wrote:
>
>> Hi,
>>
>> Change the lifecycle to "Block"
>> Then existing users (already who subscribed) cannot use the API, also new
>> users are not able to subscribe to the blocked API.
>> In this state also, you are not allowed to delete the API form the API
>> publisher since there is a subscriber.
>>
>> If you want to delete the API, you can do the following.
>> Change the lifecycle to "Deprecate"
>> After that, Change the lifecycle to "Retire".
>> Then go the home page of the API publisher, locate the API then you will
>> see that there are "0 users" with the API. Now you should be able to delete
>> the API.
>>
>> Thanks.
>>
>> On Thu, Jul 7, 2016 at 4:17 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>>
>>> On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage 
>>> wrote:
>>>
 Hi All,

 Using API Publisher and Store, I am trying to achieve the $Subject. But
 it seems via current store and publisher UIs, we can't do that.

 Let's think we create two users called userPub and userSub with only
 login and Manage permissions.
 Then "userPub" login to the API Publisher and create/Publish an API.
 Then "userSub" login to the API Store and subscribe to the above  API.
 Now "userPub" want to the delete the API, But Publisher does not allow
 to delete the API due to the subscriptions.
 Now the question is how do delete the subscriptions, Though I logged to
 store with user "userPub" I can't find a way to remove the subscription.
 So, as a result, I can't figure out a way to delete the API.

 Do we have a way to delete the API in this kind of situation?
 Appreciate your thoughts.

>>>
>>> You can demote to created and then delete.
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>>


 --
 Asanka Vithanage
 Senior Software Engineer -QA
 Mobile: +94 0716286708
 Email: asan...@wso2.com
 WSO2 Inc. www.wso2.com


>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Senior Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chamin Dias
>> *Software Engineer*
>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>> Email : cham...@wso2.com
>> Blog : https://chamindias.wordpress.com/
>>
>
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks
Abimaran Kugathasan
Senior Software Engineer

Email : abima...@wso2.com
Mobile : +94 773922820


  
  
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Thilini Cooray
Hi,

AFAIU the proper way of deleting an API is first removing from the store
(avoiding creating further subscriptions) by changing its lifecycle status
to "Deprecated" as mentioned by Chamin and then removing the API from the
Gateway by retiring it (avoiding further invocations).
Otherwise applications which already consume those APIs will get crashed.
IMO by publisher removing subscriptions without awareness of the API's
consumers may cause issues in the consumer side.

You can enable API subscription workflows to decide to which applications
you are going to allow subscribing to a particular API, however it should
be done via admin-portal, not by publisher.

What can be the use-case for suddenly deleting a published API to the store
by removing its existing subscription?

Thanks.



On Thu, Jul 7, 2016 at 5:02 PM, Asanka Vithanage  wrote:

> Hi All,
>
> Thanks for all the replies.
>
> @Roshan
>
> We can't remove subscriptions by going to the Application, Application
> only lists logged in users subscriptions.
>
> @Lakshman/Bhathiya/Chamin
>
> Yes, I understand we can achieve delete API following these steps. But
> those are actually workarounds.
>
> Why don't we allow API publish user to delete subscriptions to that API ?
> So he can delete the API after removing subscriptions.
> Even at some situations, API Published user("userPub") may want to remove
> subscriptions selectively.I don't see a way to do that as well.
>
>
>
> On Thu, Jul 7, 2016 at 4:22 PM, Chamin Dias  wrote:
>
>> Hi,
>>
>> Change the lifecycle to "Block"
>> Then existing users (already who subscribed) cannot use the API, also new
>> users are not able to subscribe to the blocked API.
>> In this state also, you are not allowed to delete the API form the API
>> publisher since there is a subscriber.
>>
>> If you want to delete the API, you can do the following.
>> Change the lifecycle to "Deprecate"
>> After that, Change the lifecycle to "Retire".
>> Then go the home page of the API publisher, locate the API then you will
>> see that there are "0 users" with the API. Now you should be able to delete
>> the API.
>>
>> Thanks.
>>
>> On Thu, Jul 7, 2016 at 4:17 PM, Bhathiya Jayasekara 
>> wrote:
>>
>>>
>>> On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage 
>>> wrote:
>>>
 Hi All,

 Using API Publisher and Store, I am trying to achieve the $Subject. But
 it seems via current store and publisher UIs, we can't do that.

 Let's think we create two users called userPub and userSub with only
 login and Manage permissions.
 Then "userPub" login to the API Publisher and create/Publish an API.
 Then "userSub" login to the API Store and subscribe to the above  API.
 Now "userPub" want to the delete the API, But Publisher does not allow
 to delete the API due to the subscriptions.
 Now the question is how do delete the subscriptions, Though I logged to
 store with user "userPub" I can't find a way to remove the subscription.
 So, as a result, I can't figure out a way to delete the API.

 Do we have a way to delete the API in this kind of situation?
 Appreciate your thoughts.

>>>
>>> You can demote to created and then delete.
>>>
>>> Thanks,
>>> Bhathiya
>>>
>>>


 --
 Asanka Vithanage
 Senior Software Engineer -QA
 Mobile: +94 0716286708
 Email: asan...@wso2.com
 WSO2 Inc. www.wso2.com


>>>
>>>
>>> --
>>> *Bhathiya Jayasekara*
>>> *Senior Software Engineer,*
>>> *WSO2 inc., http://wso2.com *
>>>
>>> *Phone: +94715478185 <%2B94715478185>*
>>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>>> *
>>> *Twitter: https://twitter.com/bhathiyax *
>>> *Blog: http://movingaheadblog.blogspot.com
>>> *
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Chamin Dias
>> *Software Engineer*
>> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
>> Email : cham...@wso2.com
>> Blog : https://chamindias.wordpress.com/
>>
>
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Best Regards,

*Thilini Cooray*
Software Engineer
Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194>
E-mail : thili...@wso2.com

WSO2 Inc. www.wso2.com
lean.enterprise.middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Asanka Vithanage
Hi All,

Thanks for all the replies.

@Roshan

We can't remove subscriptions by going to the Application, Application only
lists logged in users subscriptions.

@Lakshman/Bhathiya/Chamin

Yes, I understand we can achieve delete API following these steps. But
those are actually workarounds.

Why don't we allow API publish user to delete subscriptions to that API ?
So he can delete the API after removing subscriptions.
Even at some situations, API Published user("userPub") may want to remove
subscriptions selectively.I don't see a way to do that as well.



On Thu, Jul 7, 2016 at 4:22 PM, Chamin Dias  wrote:

> Hi,
>
> Change the lifecycle to "Block"
> Then existing users (already who subscribed) cannot use the API, also new
> users are not able to subscribe to the blocked API.
> In this state also, you are not allowed to delete the API form the API
> publisher since there is a subscriber.
>
> If you want to delete the API, you can do the following.
> Change the lifecycle to "Deprecate"
> After that, Change the lifecycle to "Retire".
> Then go the home page of the API publisher, locate the API then you will
> see that there are "0 users" with the API. Now you should be able to delete
> the API.
>
> Thanks.
>
> On Thu, Jul 7, 2016 at 4:17 PM, Bhathiya Jayasekara 
> wrote:
>
>>
>> On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage 
>> wrote:
>>
>>> Hi All,
>>>
>>> Using API Publisher and Store, I am trying to achieve the $Subject. But
>>> it seems via current store and publisher UIs, we can't do that.
>>>
>>> Let's think we create two users called userPub and userSub with only
>>> login and Manage permissions.
>>> Then "userPub" login to the API Publisher and create/Publish an API.
>>> Then "userSub" login to the API Store and subscribe to the above  API.
>>> Now "userPub" want to the delete the API, But Publisher does not allow
>>> to delete the API due to the subscriptions.
>>> Now the question is how do delete the subscriptions, Though I logged to
>>> store with user "userPub" I can't find a way to remove the subscription.
>>> So, as a result, I can't figure out a way to delete the API.
>>>
>>> Do we have a way to delete the API in this kind of situation? Appreciate
>>> your thoughts.
>>>
>>
>> You can demote to created and then delete.
>>
>> Thanks,
>> Bhathiya
>>
>>
>>>
>>>
>>> --
>>> Asanka Vithanage
>>> Senior Software Engineer -QA
>>> Mobile: +94 0716286708
>>> Email: asan...@wso2.com
>>> WSO2 Inc. www.wso2.com
>>>
>>>
>>
>>
>> --
>> *Bhathiya Jayasekara*
>> *Senior Software Engineer,*
>> *WSO2 inc., http://wso2.com *
>>
>> *Phone: +94715478185 <%2B94715478185>*
>> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
>> *
>> *Twitter: https://twitter.com/bhathiyax *
>> *Blog: http://movingaheadblog.blogspot.com
>> *
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Chamin Dias
> *Software Engineer*
> Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
> Email : cham...@wso2.com
> Blog : https://chamindias.wordpress.com/
>



-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Chamin Dias
Hi,

Change the lifecycle to "Block"
Then existing users (already who subscribed) cannot use the API, also new
users are not able to subscribe to the blocked API.
In this state also, you are not allowed to delete the API form the API
publisher since there is a subscriber.

If you want to delete the API, you can do the following.
Change the lifecycle to "Deprecate"
After that, Change the lifecycle to "Retire".
Then go the home page of the API publisher, locate the API then you will
see that there are "0 users" with the API. Now you should be able to delete
the API.

Thanks.

On Thu, Jul 7, 2016 at 4:17 PM, Bhathiya Jayasekara 
wrote:

>
> On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage  wrote:
>
>> Hi All,
>>
>> Using API Publisher and Store, I am trying to achieve the $Subject. But
>> it seems via current store and publisher UIs, we can't do that.
>>
>> Let's think we create two users called userPub and userSub with only
>> login and Manage permissions.
>> Then "userPub" login to the API Publisher and create/Publish an API.
>> Then "userSub" login to the API Store and subscribe to the above  API.
>> Now "userPub" want to the delete the API, But Publisher does not allow to
>> delete the API due to the subscriptions.
>> Now the question is how do delete the subscriptions, Though I logged to
>> store with user "userPub" I can't find a way to remove the subscription.
>> So, as a result, I can't figure out a way to delete the API.
>>
>> Do we have a way to delete the API in this kind of situation? Appreciate
>> your thoughts.
>>
>
> You can demote to created and then delete.
>
> Thanks,
> Bhathiya
>
>
>>
>>
>> --
>> Asanka Vithanage
>> Senior Software Engineer -QA
>> Mobile: +94 0716286708
>> Email: asan...@wso2.com
>> WSO2 Inc. www.wso2.com
>>
>>
>
>
> --
> *Bhathiya Jayasekara*
> *Senior Software Engineer,*
> *WSO2 inc., http://wso2.com *
>
> *Phone: +94715478185 <%2B94715478185>*
> *LinkedIn: http://www.linkedin.com/in/bhathiyaj
> *
> *Twitter: https://twitter.com/bhathiyax *
> *Blog: http://movingaheadblog.blogspot.com
> *
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Chamin Dias
*Software Engineer*
Mobile : +94 (0) 716 097455 <%2B94%20%280%29%20773%20451194>
Email : cham...@wso2.com
Blog : https://chamindias.wordpress.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Bhathiya Jayasekara
On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage  wrote:

> Hi All,
>
> Using API Publisher and Store, I am trying to achieve the $Subject. But it
> seems via current store and publisher UIs, we can't do that.
>
> Let's think we create two users called userPub and userSub with only login
> and Manage permissions.
> Then "userPub" login to the API Publisher and create/Publish an API.
> Then "userSub" login to the API Store and subscribe to the above  API.
> Now "userPub" want to the delete the API, But Publisher does not allow to
> delete the API due to the subscriptions.
> Now the question is how do delete the subscriptions, Though I logged to
> store with user "userPub" I can't find a way to remove the subscription.
> So, as a result, I can't figure out a way to delete the API.
>
> Do we have a way to delete the API in this kind of situation? Appreciate
> your thoughts.
>

You can demote to created and then delete.

Thanks,
Bhathiya


>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>


-- 
*Bhathiya Jayasekara*
*Senior Software Engineer,*
*WSO2 inc., http://wso2.com *

*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj
*
*Twitter: https://twitter.com/bhathiyax *
*Blog: http://movingaheadblog.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Roshan Wijesena
Go to Application section and then subscription tab then unsubscribe.

On Thu, Jul 7, 2016 at 3:58 PM, Lakshman Udayakantha 
wrote:

> Hi Asanka,
>
> AFAIR we can't delete an API which has subscriptions rather you can block
> the API using API publisher.
>
> Thanks
>
> On Thu, Jul 7, 2016 at 3:45 PM, Asanka Vithanage  wrote:
>
>> Hi,
>>
>> Sorry. Topic should be changed as [APIM 200] How API publisher can delete
>> a API which has subscriptions
>>
>> On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage 
>> wrote:
>>
>>> Hi All,
>>>
>>> Using API Publisher and Store, I am trying to achieve the $Subject. But
>>> it seems via current store and publisher UIs, we can't do that.
>>>
>>> Let's think we create two users called userPub and userSub with only
>>> login and Manage permissions.
>>> Then "userPub" login to the API Publisher and create/Publish an API.
>>> Then "userSub" login to the API Store and subscribe to the above  API.
>>> Now "userPub" want to the delete the API, But Publisher does not allow
>>> to delete the API due to the subscriptions.
>>> Now the question is how do delete the subscriptions, Though I logged to
>>> store with user "userPub" I can't find a way to remove the subscription.
>>> So, as a result, I can't figure out a way to delete the API.
>>>
>>> Do we have a way to delete the API in this kind of situation? Appreciate
>>> your thoughts.
>>>
>>> --
>>> Asanka Vithanage
>>> Senior Software Engineer -QA
>>> Mobile: +94 0716286708
>>> Email: asan...@wso2.com
>>> WSO2 Inc. www.wso2.com
>>>
>>>
>>
>>
>> --
>> Asanka Vithanage
>> Senior Software Engineer -QA
>> Mobile: +94 0716286708
>> Email: asan...@wso2.com
>> WSO2 Inc. www.wso2.com
>>
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0714388124*
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Roshan Wijesena.
Senior Software Engineer-WSO2 Inc.
Mobile: *+94719154640*
Email: ros...@wso2.com
*WSO2, Inc. :** wso2.com *
lean.enterprise.middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Lakshman Udayakantha
Hi Asanka,

AFAIR we can't delete an API which has subscriptions rather you can block
the API using API publisher.

Thanks

On Thu, Jul 7, 2016 at 3:45 PM, Asanka Vithanage  wrote:

> Hi,
>
> Sorry. Topic should be changed as [APIM 200] How API publisher can delete
> a API which has subscriptions
>
> On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage  wrote:
>
>> Hi All,
>>
>> Using API Publisher and Store, I am trying to achieve the $Subject. But
>> it seems via current store and publisher UIs, we can't do that.
>>
>> Let's think we create two users called userPub and userSub with only
>> login and Manage permissions.
>> Then "userPub" login to the API Publisher and create/Publish an API.
>> Then "userSub" login to the API Store and subscribe to the above  API.
>> Now "userPub" want to the delete the API, But Publisher does not allow to
>> delete the API due to the subscriptions.
>> Now the question is how do delete the subscriptions, Though I logged to
>> store with user "userPub" I can't find a way to remove the subscription.
>> So, as a result, I can't figure out a way to delete the API.
>>
>> Do we have a way to delete the API in this kind of situation? Appreciate
>> your thoughts.
>>
>> --
>> Asanka Vithanage
>> Senior Software Engineer -QA
>> Mobile: +94 0716286708
>> Email: asan...@wso2.com
>> WSO2 Inc. www.wso2.com
>>
>>
>
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0714388124*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Asanka Vithanage
Hi,

Sorry. Topic should be changed as [APIM 200] How API publisher can delete a
API which has subscriptions

On Thu, Jul 7, 2016 at 3:43 PM, Asanka Vithanage  wrote:

> Hi All,
>
> Using API Publisher and Store, I am trying to achieve the $Subject. But it
> seems via current store and publisher UIs, we can't do that.
>
> Let's think we create two users called userPub and userSub with only login
> and Manage permissions.
> Then "userPub" login to the API Publisher and create/Publish an API.
> Then "userSub" login to the API Store and subscribe to the above  API.
> Now "userPub" want to the delete the API, But Publisher does not allow to
> delete the API due to the subscriptions.
> Now the question is how do delete the subscriptions, Though I logged to
> store with user "userPub" I can't find a way to remove the subscription.
> So, as a result, I can't figure out a way to delete the API.
>
> Do we have a way to delete the API in this kind of situation? Appreciate
> your thoughts.
>
> --
> Asanka Vithanage
> Senior Software Engineer -QA
> Mobile: +94 0716286708
> Email: asan...@wso2.com
> WSO2 Inc. www.wso2.com
>
>


-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [APIM 500] How API publisher can delete a API which has subscriptions

2016-07-07 Thread Asanka Vithanage
Hi All,

Using API Publisher and Store, I am trying to achieve the $Subject. But it
seems via current store and publisher UIs, we can't do that.

Let's think we create two users called userPub and userSub with only login
and Manage permissions.
Then "userPub" login to the API Publisher and create/Publish an API.
Then "userSub" login to the API Store and subscribe to the above  API.
Now "userPub" want to the delete the API, But Publisher does not allow to
delete the API due to the subscriptions.
Now the question is how do delete the subscriptions, Though I logged to
store with user "userPub" I can't find a way to remove the subscription.
So, as a result, I can't figure out a way to delete the API.

Do we have a way to delete the API in this kind of situation? Appreciate
your thoughts.

-- 
Asanka Vithanage
Senior Software Engineer -QA
Mobile: +94 0716286708
Email: asan...@wso2.com
WSO2 Inc. www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev