axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Gamage (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-1290) In the REST implementation, Rest Mapping string are expecting to be in a particular order, this is a bug
Date Sat, 15 Nov 2008 14:01:45 GMT
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


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


Mime
View raw message