You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Irange Thenuwara (JIRA)" <ji...@apache.org> on 2016/05/16 09:13:22 UTC
[jira] [Created] (SYNAPSE-1000) findResource method doesn't count
http method of the resource
Irange Thenuwara created SYNAPSE-1000:
-----------------------------------------
Summary: findResource method doesn't count http method of the resource
Key: SYNAPSE-1000
URL: https://issues.apache.org/jira/browse/SYNAPSE-1000
Project: Synapse
Issue Type: Bug
Components: Endpoints
Affects Versions: 2.1
Reporter: Irange Thenuwara
Assignee: Hiranya Jayathilaka
Hi,
We have two resources in same API and a sample is as follows,
{noformat}
<resource methods="PATCH GET DELETE PUT"
url-mapping="/*"
faultSequence="fault">
.
.
</resource>
<resource methods="POST"
url-mapping="/*"
faultSequence="fault">
.
.
<handlers>
{noformat}
In this two resources we have to url-templates.
When we try to invoke second resource, findResource() method loose the second resource.
I checked the "URLMappingBasedDispatcher.java" in synapse and this occures due to http-method is not count inside this method.
Since many tools allow this kind of api formats I think its better we fix this?
Thanks.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org