Versions Compared

Key

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

1. Export all audit events associated with a node

Service endpoint

http://domain/rest/node_id/fcr:exportAudit

Request parameters

Name

Description

Type

Mandatory

Options/Examples

toDate

Audit events occurred till the date specified

Timestamp

No

2012-08-03T10:02:00.169Z

fromDate

Audit events occurred since the date specifed

Timestamp

No

2012-08-01T10:02:00.169Z

format

The encoding format for the response

String

No

Application/rdf+xml (default)

Text/xml

 

Example:

http://localhost:8080/fcrepo-webapp-4.0.0/rest/1d/d0/f3/16/1dd0f316-7b8c-4f10-8e40-b0c15e5f7401/fcr:exportAudit?format=application/rdf+xml&toDate=2012-08-03T10:02:00.169Z&fromDate=2012-08-01T10:02:00.169Z

Response

TBA

2. Export all audit events associated with a node where the events were created by a certain user

Service endpoint

http://domain/rest/node_id/fcr:exportAudit

Request parameters

Name

Description

Type

Mandatory

Options/Examples

toDate

Audit events occurred till the date specified

Timestamp

No

2012-08-03T10:02:00.169Z

fromDate

Audit events occurred since the date specified

Timestamp

No

2012-08-01T10:02:00.169Z

format

The encoding format for the response

String

No

Application/rdf+xml (default)

Text/xml

agent

The identifier of the user who created the event(s)

String

No

johnSmith, fedoraAdmin

 

Example

http://localhost:8080/fcrepo-webapp-4.0.0/rest/1d/d0/f3/16/1dd0f316-7b8c-4f10-8e40-b0c15e5f7401/fcr:exportAudit?format=application/rdf+xml&toDate=2012-08-03T10:02:00.169Z&fromDate=2012-08-01T10:02:00.169Z&agent=fedoraAdmin

Response

TBA

3. Export all audit events of a particular type associated with a node

Service endpoint

http://domain/rest/node_id/fcr:exportAudit

Request parameters

Name

Description

Type

Mandatory

Options/Examples

toDate

Audit events occurred till the date specified

Timestamp

No

2012-08-03T10:02:00.169Z

fromDate

Audit events occurred since the date specified

Timestamp

No

2012-08-01T10:02:00.169Z

format

The encoding format for the response

String

No

Application/rdf+xml (default)

Text/xml

eventType

The type of the event requested

String

No

e.g. Ingest, Update - taken from a control vocabulary or an RDF ontology (TBC)

 

Example

http://localhost:8080/fcrepo-webapp-4.0.0/rest/1d/d0/f3/16/1dd0f316-7b8c-4f10-8e40-b0c15e5f7401/fcr:exportAudit?format=application/rdf+xml&toDate=2012-08-03T10:02:00.169Z&fromDate=2012-08-01T10:02:00.169Z&eventType=Ingest

Response

TBA