GET /{BASE}/versions/listReturn a list of versions that affect the resource whose uri is passed as argument. For each version,
the result will contain the id, the creator, and the date when the version was recorded. Further details
for a version can be requested by calling the /versioning/versions/{id} webservice.
Note that resource_uri is an optional parameter. In case no resource uri is given, all versions recorded
by the LMF are returned, which can take a considerable amount of time.
- HTTP Example:
GET /{BASE}/versions/list?resource=…&from=…&to=… | - API Example:
VersioningWebService.getVersions({'resource': , 'from': , 'to': }); |
- Output:
- Response - a JSON list of versions, each a map with the properties "id" (long), "creator" (uri), "date" (ISO 8601 String)
- Query parameters:
- resource - the URI of the resource for which to return the versions (optional, see warning above)
- from
- to
- Produces:
- application/json
- HTTP return codes:
- 200 - in case the versions were retrieved successfully
- 404 - in case the resource passed as argument resource_uri could not be found
|