Objective

This method returns a list of the existing versions (and subversions) of a specific document.  DST must be provided.

Parameters

ParameterDescriptionType
libraryeDOCS libraryString
userUser nameString
passwordUser passwordString
docNumberDocument number. Only one document number is allowed.String
dbSchemaDatabase schema. By default is set to “DOCSADM” if an empty string is passed.String
clientOptional parameter for the client codeString
projectOptional parameter for the project codeString

Rest Invoke

  • http://localhost:port/GSService/xml/ or http://localhost:port/GSService/json/
  • UriTemplate:
    • “/GetVersions/?library={library}&user={user}&password={password}&docNumber={docNumber}&dbSchema={dbSchema}&client={client}&project={project}”
    • “/GetVersionsDST/?library={library}&user={user}&dst={dst}&docNumber={docNumber}&dbSchema={dbSchema}&client={client}&project={project}”

Example

http://localhost:8732/GSService/xml/GetVersions/?library=DMTESTLEGAL&user=admin&password=owc123&docNumber=754&dbSchema=DOCSADM

The method returns an XML file with all versions of a specific document number, and some other useful information about each version and subversion.

DST Example

http://localhost:8732/GSService/xml/GetVersionsDST/?library=DMTESTLEGAL&user=admin&dst=afd448a5d0f9b...55355b8c677ad16&docNumber=747&docNumber=754&dbSchema=DOCSADM

Error

Check the event.log file if you find errors.