IBM Connections: Using Connections API on Wiki Pages: Difference between revisions

From Wiki
(Criou a página com " {wiki-label} W34c618febb3c_4a55_81b7_0d5a81dc1954 = Create a Wiki Page = Let's create our data file. 1) Create the file WikiNewPage01.xml, with bellow content: <entry...")
 
Line 10: Line 10:
1) Create the file WikiNewPage01.xml, with bellow content:
1) Create the file WikiNewPage01.xml, with bellow content:


<nowiki>
  <entry xmlns="http://www.w3.org/2005/Atom">
  <entry xmlns="http://www.w3.org/2005/Atom">
  <title type="text">My First Wiki</title>
  <title type="text">My First Wiki</title>
Line 21: Line 22:
  <category scheme="tag:ibm.com,2006:td/type" term="page" label="page" />
  <category scheme="tag:ibm.com,2006:td/type" term="page" label="page" />
  </entry>
  </entry>
</nowiki>


Save.
Save.
Line 30: Line 32:


Important:
Important:


= Ver também =
= Ver também =

Revision as of 00:51, 24 November 2016

{wiki-label}

W34c618febb3c_4a55_81b7_0d5a81dc1954

Create a Wiki Page

Let's create our data file.

1) Create the file WikiNewPage01.xml, with bellow content:

 <entry xmlns="http://www.w3.org/2005/Atom">
 <title type="text">My First Wiki</title>
 <content type="text/html">
  <![CDATA[<?xml version="1.0" encoding="UTF-8"?><p>
  <strong>Hello World!</strong>
  </p>]]>
 </content>
 <category term="wikipagetag1" />
 <category term="wikipagetag2" />
 <category scheme="tag:ibm.com,2006:td/type" term="page" label="page" />
 </entry>
 

Save.

2) Now run curl comando to post

curl -XPOST "https://{hostname}:{port}/wikis/basic/api/wiki/{wiki-label}/feed"
-H "Content-Type: application/atom+xml" --data "@WikiNewPage01.xml"  -u {username}:{password} -v -k -L

Important:

Ver também