Hi,
Is it possible to create a new object of a custom class using the RESTful API?
The documentation page only lists the following POST method, which
doesn't accept a class name:
/wikis/{wikiName}/spaces/{spaceName}/pages/{pageName}/objects[?start=offset&number=n]
I have tried things like the following:
curl -u Admin:admin -X POST -H "Content-type: text/plain" -H "Accept:
application/xml" -d "@test.xml"
http://localhost/xwiki/rest/wikis/xwiki/spaces/Test/pages/Test/objects/XWik…
Where test.xml contains some variation on:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<properties xmlns="http://www.xwiki.org">
<property type="com.xpn.xwiki.objects.classes.TextAreaClass" name="Text">
<attribute value="Text" name="name"/>
<attribute value="Test" name="prettyName"/>
<attribute value="0" name="unmodifiable"/>
<attribute value="0" name="disabled"/>
<attribute value="100" name="size"/>
<attribute value="10" name="rows"/>
<attribute value="" name="customDisplay"/>
<attribute value="Text" name="editor"/>
<attribute value="6" name="number"/>
<attribute value="0" name="picker"/>
<attribute value="" name="validationMessage"/>
<attribute value="" name="validationRegExp"/>
<value>
This is some text.
</value>
</properties>
Curl returns this:
<html>
<head>
<title>Status page</title>
</head>
<body>
<h3>The method specified in the request is not allowed for the resource identifi
ed by the request URI</h3><p>You can get technical details <a href="http://www.w
3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.6">here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
Simpler syntax without the XML file still fails for me. In fact, I
can't seem to even get the basic "create object" method to work, even
without the class. For example:
curl -u Admin:admin -X POST
http://localhost/xwiki/rest/wikis/xwiki/spaces/Test/pages/Test/objects
Just comes back with a "malformed syntax" error.
Is there an example anywhere of how to do this?
Thank you,
Aaron
Can one copy/paste images directly into the page editor? I am testing with
the xwiki.org sandbox.
It seemed to work, ie the image appeared in the wysiwyg editor. But when I
try to view it it loses all content and reports an html parse error.
Hmmm...even when I try to upload from my local disk, as an attached image,
it reports "An error occurred while uploading your file" even though the
path is valid.
Are images useable in xwiki, or is it just that the xwiki sandbox does not
work right?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Can-one-copy-paste-images-directly-into-t…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi everybody, my name is Kévin Laîné, i'm a french guy.
I'm working on a collective project about "alternative models of family".
Xwiki seems to be the best community tool management I've discovered.
I'm really interested for opening an xwiki on the "XWiki Community farm". I have some questions before asking you to open a session.
1) Is it possible to use a domain name like "domain.tld" instead of "domain.myxwiki.org" ?
2) Is it possible to install some extensions as bulletin board or others ?
3) Is it possible to embed "Nabble Free Forums" or other Nabble apps ?
4) Is it possible to make private backup of the xwiki ?
Vincent Massol is working on "Alternate URL Scheme" http://dev.xwiki.org/xwiki/bin/view/Design/AlternateURLScheme
5) When it will be ready could I use this option on myxwiki even if I my xwiki is in production ?
Thank you very much for your answers.
I am testing XWiki 5.0.2 (standalone ZIP version) to take a look at some
extensions which don't work with our current XWiki 4.0.
One of these extensions is the Diagram Appication
<http://extensions.xwiki.org/xwiki/bin/view/Extension/Diagram+Application>
I have a couple of questions:
1) In the Diagram Applications, there are nice graphs (computers, network,
etc). I can see those graphics when I am in the edit mode, but as soon as I
"Save & View", those graphics are not displayed anymore! How can I get these
graphics to show?
2) I would like to include a diagram in another page, but if I use the
"Include" macro, I only get the "XML-text" (and not the actual diagram). How
can I "include" a diagram into a page?
Thanks in advance!
--
View this message in context: http://xwiki.475771.n2.nabble.com/Diagram-Application-tp7585510.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello all,
I have trouble to use this new extension module
when I search on multi-page export page, it always give me back
$cplugin.escapeForXML($wptext)
I tried the page on xwki.org and it is the same results
I have trouble with installation for templates.
what should I exactly do in order to add printmulti.vm and pdfmulti.vm to
my wiki
thank you for your help
yann