From pgregoire@eddyfi.com Tue Mar 1 14:42:25 2016 From: pgregoire To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] RESTful API to create a new object of custom class? Date: Tue, 01 Mar 2016 06:42:22 -0700 Message-ID: <1456839742756-7598184.post@n2.nabble.com> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0112427439983813779==" --===============0112427439983813779== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, I read through this thread, and being a newbie to XWiki, I do understand the cURL syntax explained here, but it's the location of wikis/pages/classes I'm unsure about. I created a custom class of which I'm able to instanciate objects, and list them using a LiveTable. The className I'm using in the LiveTable options is "Development.Resources.Version Information.VersionInformationClass". New VersionInformationClass instances I'm creating wind up in the tree under [Home Symbol] / Software Development / Resources / Version Information. I'd like to create new instances of that class using cURL. I think the following syntax would look about right: "C:\Program Files\cURL\bin\curl.exe" -u AdminUser:AdminPassword -X POST -H "Content-type: application/x-www-form-urlencoded" -H "Accept: application/xml" -d "className=3DDevelopment.Resources.Version Information.VersionInformationClass" -d "property#Name=3DTestABCD" http://localhost/xwiki/rest/wikis/xwiki/spaces/Development/pages/VersionInfor= mation/objects Now I have many more properties than just Name, but for testing I figured I'd start just with that one. The className I'm pretty sure about since this is exactly what I'm successfully using in my LiveTable. I think the problem is my URI. I'm not sure what the wiki, space and class should be in that context. I get the following output: Status page

Not Found

The server has not found anything matching the request URI

You can get technical details here .
Please continue your visit at our home page .

Can someone help me figure out the correct URI? Thank you Phil -- View this message in context: http://xwiki.475771.n2.nabble.com/RESTful-API-t= o-create-a-new-object-of-custom-class-tp6965384p7598184.html Sent from the XWiki- Users mailing list archive at Nabble.com. --===============0112427439983813779==--