I'm sorry, I think I still need a little help here...

So, I managed to get my object created. 
To give you an idea, I have a page (at Development.Resources.Version
Information.WebHome) where I have a LiveTable that shows all my
VersionInformation objects.
When I create these objects, they wind up in the hierarchy under the Version
Information node.

The only way I was able to run the cURL command properly was with this
command line:
"C:\Program Files\cURL\bin\curl.exe" -u AdminUser:AdminPwd -X POST -H
"Content-type: application/x-www-form-urlencoded" -H "Accept:
application/xml" -d "className=XWiki.Development.Resources.Version
Information.VersionInformationClass" -d "property#Name=TestABCD"
http://localhost/xwiki/rest/wikis/xwiki/spaces/Development/spaces/VersionInformation/pages/WebHome/objects

But doing this overwrites the Development.Resources.Version
Information.WebHome with the newly created object.
Now, it seems that the URI must end with a page, but it is my understanding
the a page can't have children - so how do I create VersionInformation class
instances under a certain node?

Thanks again for the help.





--
View this message in context: 
http://xwiki.475771.n2.nabble.com/RESTful-API-to-create-a-new-object-of-custom-class-tp6965384p7598260.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to