6 Oct 18:00
[RestAPI] create a new Restlet
From: <jiveforums-ecm@...>
Subject: [RestAPI] create a new Restlet
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-10-06 16:03:12 GMT
Subject: [RestAPI] create a new Restlet
Newsgroups: gmane.comp.cms.nuxeo.general
Date: 2008-10-06 16:03:12 GMT
Hi,
I try to create a new restlet in the last release of Nuxeo.
For that, I use a plugin.
First, I wrote my class (TestClass, name testClass) with the UploadRestlet model.
Second, I wrote the restlets-contrib.xml file (in the ressources/OSGI-INF directory):
<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.ui.web.restAPI.contrib">
<extension
target="org.nuxeo.ecm.platform.ui.web.restAPI.service.PluggableRestletService"
point="restlets">
<restletPlugin
name="testClass"
class="com.package.TestClass"
enabled="true"
useSeam="true"
useConversation="true">
<urlPatterns>
<urlPattern>
/testClass
</urlPattern>
</urlPatterns>
</restletPlugin>
</extension>
</component>
I've deployed my plugin and tried the following URL:
http://localhost:8080/nuxeo/restAPI/testClass
but it does not work.
If someone could help me...
I hope that someone will read this message because this forum seems to be inactive....
Thanks in advance,
Regards,
Xavier.
RSS Feed