Rest path matching

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Rest path matching

BrunoBB
Hi all,

(Using GemStone/S)

I have a Java application that do a put to a service.
In Seaside i have a service to process the Put.

The Java application always do a put to a url like:
.../crud/orbeon/builder/data/edd034b97d612eb5533e01803ab73da9ddc26e7a/data.xml?valid=true

Where "edd034b97d612eb5533e01803ab73da9ddc26e7a" is variable depending of a document id. An valid argument can be true/false.

The service in GemStone/Seaside is like:
        <put>
        <path: '/crud/orbeon/builder/data/{1}/data.xml?&valid={2}'>

        OrbeonServiceInteraction new
                xml: (self requestContext request bodyDecodeUsing: 'utf-8');
                addToCache.

But there is NO matching. The service does nothing...

Is the path value correct ?

Regards,
Bruno
Reply | Threaded
Open this post in threaded view
|

Re: Rest path matching

BrunoBB
Hi all,

Never mind is working now, just for the record the path was correct.

To match something like:
/crud/orbeon/builder/data/edd034b97d612eb5533e01803ab73da9ddc26e7a/data.xml?valid=true

The following path is ok:
<path: '/crud/orbeon/builder/data/{1}/data.xml/?valid={2}'>

Regards,
Bruno