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-27276b69f9e2/createDocument?docType=Folder&title=aaa
and :
http://localhost:8080/nuxeo/restAPI/default/7a63cf47-1783-4ad3-8a69-27276b69f9e2/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


       
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to