Re: [Dev] [APIM2xx] how to add an api level throttling policy for "Apply to API" using updateAPI from publisher rest api?

2018-02-01 Thread Uvindra Dias Jayasinha
If someone tries to create a new API via REST API specifying a tier that does not exist we should simply reject the creation of that API. We need to validate that the specified tiers are valid in the API creation request On 1 February 2018 at 12:41, Irham Iqbal wrote: > I have

Re: [Dev] [APIM2xx] how to add an api level throttling policy for "Apply to API" using updateAPI from publisher rest api?

2018-02-01 Thread Harsha Kumara
On Thu, Feb 1, 2018 at 12:51 PM, Uvindra Dias Jayasinha wrote: > If someone tries to create a new API via REST API specifying a tier that > does not exist we should simply reject the creation of that API. We need to > validate that the specified tiers are valid in the API

Re: [Dev] [APIM2xx] how to add an api level throttling policy for "Apply to API" using updateAPI from publisher rest api?

2018-02-01 Thread Irham Iqbal
I have added an additional parameter to pass the api level throttling policy, so if that parameter has a value it will be saved in to the AM_API table so the throttling policy will be API level other wise that column will be null so it will be per resource policy. My question is, what if a

Re: [Dev] [APIM2xx] how to add an api level throttling policy for "Apply to API" using updateAPI from publisher rest api?

2018-02-01 Thread Chamin Dias
Yes, according to the REST API documentation , tiers are required. Hence the validation is needed at the API creation. On Thu, Feb 1, 2018 at 12:51 PM, Uvindra Dias Jayasinha wrote: > If someone tries to

Re: [Dev] [APIM2xx] how to add an api level throttling policy for "Apply to API" using updateAPI from publisher rest api?

2018-01-29 Thread Anuruddha Liyanarachchi
[+ Irham] On Tue, Jan 16, 2018 at 2:41 PM, Sanjeewa Malalgoda wrote: > Can we address this and fix it for 2.2.0? > > Thanks, > sanjeewa. > > On Fri, Jan 12, 2018 at 4:23 PM, Kavitha Subramaniyam > wrote: > >> Thanks Rajith to pointing out! >> >> @Harsha,

Re: [Dev] [APIM2xx] how to add an api level throttling policy for "Apply to API" using updateAPI from publisher rest api?

2018-01-16 Thread Sanjeewa Malalgoda
Can we address this and fix it for 2.2.0? Thanks, sanjeewa. On Fri, Jan 12, 2018 at 4:23 PM, Kavitha Subramaniyam wrote: > Thanks Rajith to pointing out! > > @Harsha, please find the github issue created on [1] > [1] https://github.com/wso2/product-apim/issues/2388 > >

Re: [Dev] [APIM2xx] how to add an api level throttling policy for "Apply to API" using updateAPI from publisher rest api?

2018-01-12 Thread Kavitha Subramaniyam
Thanks Rajith to pointing out! @Harsha, please find the github issue created on [1] [1] https://github.com/wso2/product-apim/issues/2388 Thanks, On Fri, Jan 12, 2018 at 3:59 PM, Harsha Kumara wrote: > Yes, it seems like we have missed it. Please create a github issue. > > On

Re: [Dev] [APIM2xx] how to add an api level throttling policy for "Apply to API" using updateAPI from publisher rest api?

2018-01-12 Thread Harsha Kumara
Yes, it seems like we have missed it. Please create a github issue. On Fri, Jan 12, 2018 at 3:44 PM, Rajith Roshan wrote: > Hi, > > It seems like API level policy is not included in the APIDTO object[1]. > Hence this is not supported with rest api > > [1] -

Re: [Dev] [APIM2xx] how to add an api level throttling policy for "Apply to API" using updateAPI from publisher rest api?

2018-01-12 Thread Rajith Roshan
Hi, It seems like API level policy is not included in the APIDTO object[1]. Hence this is not supported with rest api [1] - https://github.com/wso2/carbon-apimgt/blob/6.x/components/apimgt/org.wso2.carbon.apimgt.rest.api.store/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/dto/APIDTO.java