You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Dimuthu Gamage (JIRA)" <ji...@apache.org> on 2008/11/15 15:06:55 UTC

[jira] Updated: (AXIS2C-1290) In the REST implementation, Rest Mapping string are expecting to be in a particular order, this is a bug

     [ https://issues.apache.org/jira/browse/AXIS2C-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dimuthu Gamage updated AXIS2C-1290:
-----------------------------------

    Attachment: schoolap.zip

test application attached.

> In the REST implementation, Rest Mapping string are expecting to be in a particular order, this is a bug
> --------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1290
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1290
>             Project: Axis2-C
>          Issue Type: Bug
>         Environment: Linux + windows
>            Reporter: Dimuthu Gamage
>            Assignee: Dimuthu Gamage
>         Attachments: schoolap.zip
>
>
> In the REST implementation, Rest Mapping string are expecting to be in a particular order, this should be improved to get the rest map in any order to derive the parameters and the operation.
> E.g.
> If you have following mapping string,
>     <!-- list of operations -->
>     <operation name="getSubjects">
>             <parameter name="RESTMethod">GET</parameter>
>             <parameter name="RESTLocation">subjects</parameter>
>     </operation>
>     <operation name="getSubjectInfoPerName">
>             <parameter name="RESTMethod">GET</parameter>
>             <parameter name="RESTLocation">subjects/{name}</parameter>
>     </operation>
>     <operation name="getStudents">
>             <parameter name="RESTMethod">GET</parameter>
>             <parameter name="RESTLocation">students</parameter>
>     </operation>
>     <operation name="getStudentInfoPerName">
>             <parameter name="RESTMethod">GET</parameter>
>             <parameter name="RESTLocation">students/{name}</parameter>
>     </operation>
>     <operation name="getMarksPerSubjectPerStudent">
>             <parameter name="RESTMethod">GET</parameter>
>             <parameter name="RESTLocation">students/{student}/marks/{subject}</parameter>
>     </operation>
> The last operation "getMarksPerSubjectPerStudent" is not invoked, as the url pattern is earlier mapped to the "getStudentInfoPerName" operation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org