Administrator
- Administrator
- All Products
/public/core/v3/compare/<asset ID>
Field | Type | Required | Description |
---|---|---|---|
source | String | Yes | The base version of the asset to compare. Use one of the
following values:
|
destination | String | Yes | The asset version to compare to the base version.
|
outputFormat | String | Yes | Response format. Use one of the following values:
|
Field | Type | Description |
---|---|---|
source
| Object | Base version of asset that the updated version
is compared with. |
name | String | Name of the asset. |
path | String | Full path to the asset. |
updatedOn | String | The timestamp when the commit was submitted in
the following format:
yyyy-MM-dd'T'HH:mm:ss.SSSZ |
updatedBy | String | User who updated the object. |
commitHash | String | Commit hash of the file retrieved from the
commit. Use one of the following values:
|
destination | Object | Version of the asset that's being compared to
the source version. |
name | String | Name of the asset. |
path | String | Full path to the asset. |
updatedOn | String | The timestamp when the commit was submitted
in the following format:
yyyy-MM-dd'T'HH:mm:ss.SSSZ
|
updatedBy | String | User who updated the object. |
commitHash | String | Commit hash of the file retrieved from the
commit. Can be one of the following values:
|
action | String | Action performed on the asset. Can be one of
the following values:
|
objectId | String | Global unique identifier of the
object. |
lineGroup | Array <Object> | Object that describes the changes made to the source version and
destination version. |
oldChange | Object that lists the lines with removed changes. | |
startPosition | Int | Initial line number of the removed
changes. |
noOfLinesAffected | Int | Total lines impacted. |
newChange | Object that lists the lines with added
changes. | |
startPosition | Int | Initial line number of the added
changes. |
noOfLinesAffected | Int | Total lines impacted. |
unmodifiedLinesBefore | List <String> | Lines before affected lines that are
unmodified. Maximum of 3. |
unmodifiedLinesAfter | List <String> | Lines after affected lines that are
unmodified. Maximum of 3. |
oldChanges | List <String> | Lines removed from asset file. Inline removal of words are represented
between <remove-txt>. |
newChanges | List <String> | New lines added into asset file. Inline addition of words are
represented between <add-txt>. |
POST <baseApiUrl>/public/core/v3/compare/jn94HPOUK4zlEoO07eGfEq Content-Type: application/json Accept: application/json INFA-SESSION-ID: <sessionId> { "source": "CURRENT-VERSION", "destination": "aca30f6c44de9bef23db59ed16967653481c5e23", "outputFormat": "JSON" }
POST <baseApiUrl>/public/core/v3/compare/2tDSXSjd2Fkg1AFPSWops3 Content-Type: application/json Accept: application/text INFA-SESSION-ID: <sessionId> { "source": "b0bdc63a7fb9047db6c3bc29ad67d5ecbf7d1d47", "destination": "fc6fcc318ad1b4aec17017d053bc2f0d1f605096", "outputFormat": "TEXT" }
{ "source": { "name": "TestMapping", "path": "Test", "updatedOn": null, "updatedBy": null, "commitHash": "CURRENT-VERSION" }, "destination": { "name": "TestMapping", "path": "Test", "updatedOn": "2025-05-08T02:15:17.842Z", "updatedBy": null, "commitHash": "95983a4fe44ee21df1933c5c4b4a5c565c68b832" }, "id": "2tDSXSjd2Fkg1AFPSWops3", "action": "UPDATE", "lineGroup": [ { "oldChange": { "startPosition": 85, "noOfLinesAffected": 1 }, "newChange": { "startPosition": 85, "noOfLinesAffected": 1 }, "unmodifiedLinesBefore": [ " }", " ]", " }," ], "unmodifiedLinesAfter": [ "}" ], "oldChanges": [ " \"vcsExportTime\" : \"2025-05-<remove-text>08<remove-text> <remove-text>09:46:09<remove-text> PDT\"" ], "newChanges": [ " \"vcsExportTime\" : \"2025-05-<add-text>07<add-text> <add-text>19:15:17<add-text> PDT\"" ] } ] }
id: 2tDSXSjd2Fkg1AFPSWops3 action: UPDATE source: {name='TestMapping', path='Test', updatedOn=Thu May 08 02: 14: 35 UTC 2025, updatedBy='null', version='ed08ed8f845fe1602006130a734d4416b7b72436' } destination: {name='TestMapping', path='Test', updatedOn=Thu May 08 02: 15: 17 UTC 2025, updatedBy='null', version='95983a4fe44ee21df1933c5c4b4a5c565c68b832' } changes: @@ -2, 0 +2, 0 @@ { "content": { + "description": "This mapping is used for testing", "allowMaxFieldLength": "false", "bigIntConvertType": "ONLY_BIGINT", "documentType": "MAPPING", @@ -84, 1 +85, 1 @@ } ] }, - "vcsExportTime": "2025-05-07 <remove-text>19:14:35<remove-text> PDT" + "vcsExportTime": "2025-05-07 <add-text>19:15:17<add-text> PDT" }