Hi Kavitha Thank you. It worked. I have reported a doc issue as this information should be included to documentation
[1] https://github.com/wso2/product-apim/issues/2431 Best Regards Erandi On Tue, Jan 16, 2018 at 3:05 PM, Kavitha Subramaniyam <[email protected]> wrote: > Hi Chathurika, > > I hope you were trying to add access control with restricted by roles and > not the visibility. Can you please try the below parameters and see? > > "accessControl": "RESTRICTED", > "accessControlRoles": [ > "rolename" > ], > > Thanks, > Kavitha > > On Tue, Jan 16, 2018 at 2:59 PM, Sanjeewa Malalgoda <[email protected]> > wrote: > >> In this document[1] we have added sample request to create API. There we >> have visibility and visible roles attributes. >> >> "visibility": "PUBLIC", "visibleRoles": [], "visibleTenants": [], >> >> [1]https://docs.wso2.com/display/AM210/apidocs/publisher/#!/ >> operations#APICollection#apisPost >> >> Thanks, >> sanjeewa. >> >> On Tue, Jan 16, 2018 at 2:55 PM, Chathurika De Silva < >> [email protected]> wrote: >> >>> Hi >>> >>> I am trying to creating an api using the rest interfaces to have access >>> control for selected roles. In Publisher UI i can set "Restricted to Roles" >>> as Access Control mechanism. Referred [1] to find the relevant parameter to >>> set the above through the REST APIs but couldn't find the reference. Any >>> help regarding this is much appreciated. >>> >>> [1] https://docs.wso2.com/display/AM210/apidocs/publisher/#!/models#API >>> >>> >>> Thanks >>> Erandi >>> >>> *Chathurika Erandi* >>> Senior Software Engineer, >>> WSO2 Inc. >>> >>> *E-mail:* [email protected] >>> *Mobile: *+94714 328 612 >>> *Blog*: chathurikaerandi.blogspot.com >>> >> >> >> >> -- >> >> *Sanjeewa Malalgoda* >> WSO2 Inc. >> Mobile : +94713068779 <+94%2071%20306%208779> >> >> <http://sanjeewamalalgoda.blogspot.com/>blog >> :http://sanjeewamalalgoda.blogspot.com/ >> <http://sanjeewamalalgoda.blogspot.com/> >> >> >> > > > -- > Kavitha.S > *Software Engineer -QA* > email : [email protected] > Mobile : +94 (0) 771538811 <%2B94%20%280%29%20773%20451194> > > -- *Chathurika Erandi* Senior Software Engineer, WSO2 Inc. *E-mail:* [email protected] *Mobile: *+94714 328 612 *Blog*: chathurikaerandi.blogspot.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
