Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Short Description

Chapter Contents:

Table of Contents
maxLevel4
minLevel4

Long Description

Properties

Property
Type
Length
Mandatory
Description
Comments
objectName
String   New attribute. It specifies the Dataloy object name the audit log refers to (Voyage, Document, ..) since API 3.5
attributeName
String   New attribute. It specifies the attribute name of the object the audit log refers to since API 3.5
actionTime
Date   Audit log creation date 
entryText
String   Short text description of what has been changed 
sourceInteger  The key of the dataloy object the audit log refers to 
newValueString  The new value for the fields in string format 
oldValueString  The old value for the fields in string format 

Supported Methods

GET /AuditLog

Get a list of AuditLog objects. Filter to avoid huge amounts of data (see Filtering for search parameters).

 Examples:

http://localhost:8080/ws/rest/AuditLog?filter=objectName(EQ)VoyageHeader&filter=attributeName(EQ)voyageStatus&filter=newValue(EQ)SCH&filter=actionTime(GT)2017-05-01T09:50:10

Gather all AuditLog for the VoyageHeader object where the attribute voyageStatus has changed to SCH value after the specified date.

http://localhost:8080/ws/rest/AuditLog?filter=objectName(EQ)VoyageHeader&filter=attributeName(EQ)voyageStatus&filter=newValue(EQ)NOM&filter=actionTime(GT)2017-05-01T09:50:10&filter=oldValue(EQ)SCH

Gather all AuditLog for the VoyageHeader object where the attribute voyageStatus has changed from the value SCH to NOM after the specified date.

GET /AuditLog/{key}

Get a single AuditLog object.

Example Response Body

GET /AuditLog/100092141094057
Note

Updated for API version 2.0.0 using the new required date format yyyy-dd-MMThh:mi:ss to conform ISO 8601, (prior versions version has date format: yyyy-dd-MM hh:mi:ss)

Code Block
languagejs
{
    "key": 100092141094057,
    "self": "http://localhost:8080/ws/rest/AuditLog/100092141094057",
    "createdDateobjectName": "2005-05-09T15:51:08VoyageHeader",
    "modifiedDateattributeName": "2005-05-09T15:54:43voyageStatus",
    "usersource": {15562857,
        "keynewValue": 1000656"SCH",

       "selfoldValue": "http://localhost:8080/ws/rest/User/1000656NOM",
        "userCodeentryText": "TESTField update: voyageStatus",

       "userNameactionTime": "Test User"
    }2017-06-08T12:45:00",
    "actionTimemodifiedDate": "20052017-0506-09T1508T10:5145:0800",
    "entryTextaction": "Field update: portCostCurrency",{
        "key": 1000009,
        "newValueself": "300000http://localhost:8080/ws/rest/Action/1000009",
        "oldValueactionName": "0.0"EDIT"
    },
    "actionuser": {
        "key": 1000009999999,
        "self": "http://localhost:8080/ws/rest/ActionUser/1000009999999",
    },     "fielduserName": { "dataloy - KEEP",
        "keyuserCode": 902955,"DATALOY"
    },
    "selfcreatedDate": "http://localhost:8080/ws/rest/Field/902955"
    }2017-06-08T10:45:00",
    "sourcecreatedById": 1000886999999,
    "remarks": []
}
1000921

Top
Back

Related Content

Expand
titleExpand to see related content

Wiki Markup
{dynamiccontentbylabel:showLabels=false|showSpace=false}