CA SDM supports Atom feeds through the collection GET URI path because Atom feeds represent a list of records. This implementation supports all query parameters that REST Web Services support, such as the WC, start, and size query parameters. This implementation supports two additional query parameters, EntryTitle and EntrySummary, which let you specify a mapping between the Atom entry Title and Summary elements to Majic attributes.
EntryTitle=<Majic attribute name> EntrySummary=<Majic attribute name>
Note: If you do not specify these parameters, REST uses the COMMON_NAME as the default title and summary values.
The following sample displays these query parameters:
GET /caisd-rest/cnt?size=2&EntryTitle=userid&EntrySummary=notes HTTP/1.1 Accept: application/atom+xml
The following sample displays the Atom response:
<?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 feed</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&size=2"
rel="next"/>
<link href="http://myserver:8050/caisd-rest/cnt?start=1&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"> User for 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>
|
Copyright © 2013 CA.
All rights reserved.
|
|