上一主题: 已知状态代码

下一主题: 请求数据格式时的其他 REST 支持

Atom 馈送

CA SDM 通过集合 GET URI 路径支持 Atom 馈送,因为 Atom 馈送表示记录列表。 此实施支持 REST Web 服务支持的所有查询参数,例如 WC、启动和大小查询参数。 此实施支持两个附加查询参数 EntryTitle 和 EntrySummary,供您指定 Atom 条目标题和摘要元素与 Majic 属性之间的映射。

EntryTitle=<Majic 属性名称>
EntrySummary=<Majic 属性名称>

注意:如果没有指定这些参数,REST 会使用 COMMON_NAME 作为默认标题和摘要值。

以下示例显示这些查询参数:

GET /caisd-rest/cnt?size=2&EntryTitle=userid&EntrySummary=notes HTTP/1.1
Accept: application/atom+xml

以下示例显示 Atom 响应:

<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <author>
    <name>CA Service Desk Manager</name>
  </author>
  <title type="text">REST API Atom 馈送</title>
  <id>http://myserver:8050/caisd-rest/cnt</id>
  <updated>2012-01-17T17:56:04.301Z</updated>
  <link href="http://myserver:8050/caisd-rest/cnt?start=3&amp;size=2"
  rel="next"/>
  <link href="http://myserver:8050/caisd-rest/cnt?start=1&amp;size=12"
  rel="all"/>
  <link href="http://myserver:8050/caisd-rest/cnt"
  rel="self"/>
  <entry>
    <author>
      <name>CA Service Desk Manager</name>
    </author>
    <title type="text">System_AM_User</title>
    <id>http://myserver:8050/caisd-rest/cnt/U'16226C765005B94E957E0F477DEF1B1C'</id>
    <updated>1970-01-01T00:00:00.000Z</updated>
    <summary type="text">Asset Management Integration 用户</summary>
    <content type="application/xml">
      <cnt id="U'16226C765005B94E957E0F477DEF1B1C'" REL_ATTR="U'16226C765005B94E957E0F477DEF1B1C'"
      COMMON_NAME="System_AM_User" xmlns="">
        <link href="http://myserver:8050/caisd-rest/cnt/U'16226C765005B94E957E0F477DEF1B1C'"
        rel="self"/>
      </cnt>
    </content>
  </entry>
  <entry>
    <author>
      <name>CA Service Desk Manager</name>
    </author>
    <title type="text">cavizuser</title>
    <id>http://myserver:8050/caisd-rest/cnt/U'17DEA1027C7C3746B6F25DB6604EEE23'</id>
    <updated>1970-01-01T00:00:00.000Z</updated>
    <summary type="text">Username used by Visualizer for
            accessing CA Service Desk Manager using Web Services</summary>
    <content type="application/xml">
      <cnt id="U'17DEA1027C7C3746B6F25DB6604EEE23'" REL_ATTR="U'17DEA1027C7C3746B6F25DB6604EEE23'"
      COMMON_NAME="System_CMDB_Visualizer_User" xmlns="">
        <link href="http://myserver:8050/caisd-rest/cnt/U'17DEA1027C7C3746B6F25DB6604EEE23'"
        rel="self"/>
      </cnt>
    </content>
  </entry>
</feed>