我正在尝试使用IBM Connections 4.5中的REST创建事件,我使用了IBM Connections API文档,但是当我发布请求时,我收到错误500,并且没有返回错误消息。我传递的Atom文档是:
<?xml version="1.0" encoding="UTF-8"?>
<entry
xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app"
xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
<title type="text">ST0809</title>
<content type="html"><![CDATA[ Description ]]></content>
<category term="event" scheme="http://www.ibm.com/xmlns/prod/sn/type"></category>
<snx:recurrence scheme="http://www.ibm.com/xmlns/prod/sn" custom="yes">
<snx:period scheme="http://www.ibm.com/xmlns/prod/sn">
<snx:startDate scheme="http://www.ibm.com/xmlns/prod/sn">2014-06-23T08:00:00.000Z</snx:startDate>
<snx:endDate scheme="http://www.ibm.com/xmlns/prod/sn">2014-06-23T09:00:00.000Z</snx:endDate>
</snx:period>
</snx:recurrence>
</entry>
我发帖到URL“/ communities / calendar / atom / calendar / event?calendarUuid =”,显然填写了uuid。
有人有什么想法吗?
答案 0 :(得分:0)
IBM文档中有一个错误,它缺少一些东西(文档中没有提到snx:period)。
这是工作版本,请注意已经添加了allday。
<entry
xmlns="http://www.w3.org/2005/Atom"
xmlns:app="http://www.w3.org/2007/app"
xmlns:snx="http://www.ibm.com/xmlns/prod/sn">
<title type="text">ST0809</title>
<content type="html"><![CDATA[ Description ]]></content>
<snx:allday>0</snx:allday>
<category term="event" scheme="http://www.ibm.com/xmlns/prod/sn/type"></category>
<snx:recurrence scheme="http://www.ibm.com/xmlns/prod/sn" custom="yes">
<snx:period scheme="http://www.ibm.com/xmlns/prod/sn">
<snx:startDate scheme="http://www.ibm.com/xmlns/prod/sn">2014-06-23T08:00:00.000Z</snx:startDate>
<snx:endDate scheme="http://www.ibm.com/xmlns/prod/sn">2014-06-23T09:00:00.000Z</snx:endDate>
</snx:period>
</snx:recurrence>
</entry>