Thanks Dinesh, that worked. On Fri, Oct 10, 2014 at 8:50 AM, Dinesh J Weerakkody <[email protected]> wrote:
> Hi Dumidu, > > According to the implementation, you have to send same no of comma > separated values to resourceMethodAuthType-0 and > resourceMethodThrottlingTier-0 parameters. > For example your API creation request should be > > curl -X POST -b cookies > http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag -d > "action=addAPI&name= > EchoServiceLatest&visibility=public&version=1.0.0&description=test > databases&endpointType=nonsecured&http_checked=http&https_checked=https&wsdl=&tags=echoservicenewlatest,echo&tier=Silver&thumbUrl= > https://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png&context=/echoservicenlatest&tiersCollection=Gold&resourceCount=0&resourceMethod-0= > *GET,PUT,POST,DELETE,OPTIONS*&resourceMethodAuthType-0= > *Application,Application,Application,Application,Application* > &resourceMethodThrottlingTier-0= > *Unlimited,Unlimited,Unlimited,Unlimited,Unlimited*&uriTemplate-0=/*" > -d'endpoint_config={"production_endpoints":{"url":" > http://localhost:9773/services/echo/echoString > ","config":null},"endpoint_type":"http"}'; > > > > > On Thu, Oct 9, 2014 at 6:33 PM, Dumidu Handakumbura <[email protected]> > wrote: > >> Hi Guys, >> >> I'm invoking the API Manager 1.7 publisher API in the following way to >> publish an API, the problem is the API is getting created with resource >> method as GET though I have specified GET,PUT,POST,DELETE,OPTIONS. Please >> Advice. >> >> ---- >> >> curl -X POST -c cookies >> http://localhost:9763/publisher/site/blocks/user/login/ajax/login.jag -d >> "action=login&username=provider1&password=provider1"; >> >> curl -X POST -b cookies >> http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag -d >> "action=addAPI&name=EchoServiceLatest&visibility=public&version=1.0.0&description=test >> databases&endpointType=nonsecured&http_checked=http&https_checked=https&wsdl=&tags=echoservicenewlatest,echo&tier=Silver&thumbUrl= >> https://upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png&context=/echoservicenlatest&tiersCollection=Gold&resourceCount=0&resourceMethod-0= >> *GET,PUT,POST,DELETE,OPTIONS*&resourceMethodAuthType-0=Application&resourceMethodThrottlingTier-0=Unlimited&uriTemplate-0=/*" >> -d'endpoint_config={"production_endpoints":{"url":" >> http://localhost:9773/services/echo/echoString >> ","config":null},"endpoint_type":"http"}'; >> >> curl -X POST -b cookies >> http://localhost:9763/publisher/site/blocks/life-cycles/ajax/life-cycles.jag >> -d >> "name=EchoServiceLatest&version=1.0.0&provider=provider1&status=PUBLISHED&publishToGateway=true&action=updateStatus"; >> >> >> Regards, >> Dumidu >> >> -- >> *Dumidu Handakumbura* >> Software Engineer - QA >> WSO2 Inc; http://www.wso2.com/. >> Mobile; >> *+94777706740 <%2B94777706740> * >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > *Dinesh J. Weerakkody* > Software Engineer > WSO2 Inc. > lean | enterprise | middleware > M : +94 727 361788 | E : [email protected] | W : www.wso2.com > -- *Dumidu Handakumbura* Software Engineer - QA WSO2 Inc; http://www.wso2.com/. Mobile; *+94777706740 *
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
