Documents in Nuxeo are structured on schemas, so you should use 
[schema]:[field] like parameters in your query strings.

Here 
http://hg.nuxeo.org/nuxeo/nuxeo-platform/file/4dd732a3d467/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/restAPI/CreateDocumentRestlet.java

you can see that title field is set using dublincore:title.

Here you can find more details about most important schemas:
http://hg.nuxeo.org/nuxeo/nuxeo-core/file/9fe7f4237649/nuxeo-core/src/main/resources/schema/

On Friday 23 May 2008 11:08:10 nego ady wrote:
> hello
> I have tried also with query strings but I still have the same
> problem...the restlet is creating a folder with the default name...maybe
> the parameter name is not docTitle or title... thank you Mihai for your
> answers ( Multumesc! :p) I have tried with the call :
> http://localhost:8080/nuxeo/restAPI/default/7a63cf47-1783-4ad3-8a69-27276b6
>9f9e2/createDocument?docType=Folder&title=aaa and :
> http://localhost:8080/nuxeo/restAPI/default/7a63cf47-1783-4ad3-8a69-27276b6
>9f9e2/createDocument?docType=Folder&docTitle=aaa
>
> It is creating a folder with name New File every time.
>
>
> Mihai Durbaca <[EMAIL PROTECTED]> wrote: You can add
> parameters with URL query strings.
>
> For more information look here:
> http://en.wikipedia.org/wiki/Query_string
>
> On Thursday 22 May 2008 19:19:31 nego ady wrote:
> > I have looked at that file the only thing that I have found is this :
> >
> >
> >
> >
> >
> >       126    GET /nuxeo/restAPI/{repo}/{parentdocid}/createDocument
> >
> >
> >
> >       127    or equivalently with optional query paramaters:
> >
> >
> >
> >       128    GET
> > /nuxeo/restAPI/{repo}/{parentdocid}/createDocument?docType=File
> >
> >
> >
> >       129    or
> >
> >
> >
> >       130    POST /nuxeo/restAPI/{repo}/{parentdocid}/createDocument
> >
> >
> >
> >       131    with arguments with initial values of the documents fields
> > as string valued properties
> >
> >
> >
> >       132
> >
> >
> > The one with the POST method I think I need but I still don't understand
> > how i can add the parameters to the createDocument restlet call URL.
> >
> > Mihai Durbaca  wrote: Take a look here:
> > http://hg.nuxeo.org/nuxeo/nuxeo-platform/file/4dd732a3d467/nuxeo-platform
> >-u i-web/src/main/resources/OSGI-INF/restAPI-contrib.xml
> >
> > There you can see the url pattern for calling the restlet.
> >
> > Hope it helps.
> >
> > --
> >
> > Mihai Durbaca
> >
> > On Thursday 22 May 2008 16:25:57 nego ady wrote:
> > > I want to know a typical call for createDocument restlet (with
> > > parameters) . I have found how to specify the docType but I want also
> > > to specify the name of the created document in the call  of the
> > > restlet.
> > >
> > >  thanks
> >
> > _______________________________________________
> > ECM mailing list
> > [email protected]
> > http://lists.nuxeo.com/mailman/listinfo/ecm

-- 
Mihai-Alexandru DURBACA
Software Engineer
Business & Decision
E-mail: [EMAIL PROTECTED]
Phone: +40723580694, +40746494309
Yahoo! IM: [EMAIL PROTECTED]
MSN IM: [EMAIL PROTECTED]
AOL IM: mdurbaca
Skype: mitzud
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to