MashZone NextGen 10.2 | Appendix | Legacy Presto components | MashZone NextGen Development and APIs | MashZone NextGen APIs | MashZone NextGen Snapshot API | Get Snapshot Methods | Get One Snapshot By ID
 
Get One Snapshot By ID
Base URL
To retrieve a specific, complete snapshot, you must have the snapshot ID. Typically, you find this ID in the response to a snapshot collection query. See Get Snapshot Collections By Criteria for an example of this response.
You use the URL in content/@href from the snapshot collection query response to retrieve the snapshot you want. This URL is in the form:
http://app-server:port/mashzone/edge/api/rest/snapshot/snapshot-id
A Single Snapshot Response
This example shows a snapshot in XML format. The actual results in the snapshot are contained in the content element:

<snapshot xmlns="http://www.jackbe.com/2009-08-01/snapshot"
id="747523af-2e50-11e0-bde1-61d07a0308ed">
<name>Top Losers Dec 31, 2010</name>
<service>XigniteHistorical</service>
<operation>GetTopLosers</operation>
<createdby>admin</createdby>
<description>Top stock lowers for 12/31/2010</description>
<tags>
<tag>losers</tag>
</tags>
<view>Grid</view>
<createdtime>2011-02-01T14:16:07.928-08:00</createdtime>
<createdtimemillis>1296598567932</createdtimemillis>
<content xmlns="">
<!-- actual snapshot data -->
<GetTopLosersResponse xmlns="http://www.xignite.com/services/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<GetTopLosersResult>
...
</GetTopLosersResponse>
</content>
<annotations/>
<filter/>
</snapshot>

Copyright © 2013-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release