Hi devs,

I want to create an API with both GET and DELETE verbs allowed. I tried to
do it with following request. But it only allows the verb specified in *
resourceMethod-0. *

*POST http://localhost:9763/publisher/site/blocks/item-add/ajax/add.jag*
*
*
*POST data:*
*action=addAPI&name=xx&context=/xx&version=1.0.0&description=This API has
been added by Jmeter
Test&visibility=public&endpoint=127.0.0.1:6789&tags=finder,open,social&tier=Unlimited&tiersCollection=Unlimited,Gold&resourceCount=0&endpointType=nonsecured&resourceTemplate=/*&resourceMethod-0=DELETE&uriTemplate-0=/*&resourceMethodAuthType-0=Application
User&uriTemplate-1=/*&resourceMethod-1=GET&resourceMethodAuthType-1=Application
User&addNewAPIButton=Create&roles=public*
*
*
*Cookie Data:*
*$Version=0; JSESSIONID=B72F44E85F3129EF5A08DF09E05F60DC; $Path=/publisher/*
*
*
*Request Headers:*
*Content-Length: 469*
*Connection: keep-alive*
*Content-Type: application/x-www-form-urlencoded*
*
*
Am I doing something wrong here? Please advise.
*
*
*Thanks.*

-- 
*Bhathiya Jayasekara*
*Software Engineer,*
*WSO2 inc., http://wso2.com*
*
*
*Phone: +94715478185*
*LinkedIn: http://www.linkedin.com/in/bhathiyaj*
*Twitter: https://twitter.com/bhathiyax*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to