This REST API will not be implemented. The page is here an historical artifact of in-progress discussions.

 

 

Request URI: /audit:{audit_id}, /path/to/some/resource/fcr:audit, /fcr:audit

Methods: GET, POST, DELETE

 

 Get a single audit entry

Query Parameters:

   (Optional) Output format of response, possibilities TBD.

Example:

curl "http://localhost:8080/rest/audit:12345"

Response:

Returns the audit entry, including the full contents of the audit entry.

 

 Delete a single audit entry

Example:

curl -X DELETE "http://localhost:8080/rest/audit:12345"

 

 Get the audit history of this resource

Query Parameters:

   (Optional) Restricts the audit entries to those that occur after this timestamp.

   (Optional) Restricts the audit entries to those that occur before this timestamp.

   (Optional) Restricts the audit entries to internal or external entries. Valid values: "internal", "external".

   (Optional) Restricts the audit entries to those that were created by this agent. See list of agents.

   (Optional) Restricts the audit entries to those of this type. See list of types.

   (Optional) Output format of response, possibilities TBD.

Example:

curl "http://localhost:8080/rest/path/to/some/resource/fcr:audit"

Response:

Returns all audit entries that meet the specified criteria, including the full contents of the audit entries.

 

 Add an external audit entry on this resource

Request Headers:

TYPE  The type of the audit entry. See list of types. Should this be optional?

DESCRIPTION  (Optional) A text description of the event.

Example:

curl -X POST "http://localhost:8080/rest/path/to/some/resource/fcr:audit"

 

 Get the audit history of the repository

Query Parameters:

   (Optional) Restricts the audit entries to those that occur after this timestamp.

   (Optional) Restricts the audit entries to those that occur before this timestamp.

   (Optional) Restricts the audit entries to internal or external entries. Valid values: "internal", "external".

   (Optional) Restricts the audit entries to those that were created by this agent. See list of agents.

   (Optional) Restricts the audit entries to those of this type. See list of types.

   (Optional) Output format of response, possibilities TBD.

Example:

curl "http://localhost:8080/rest/fcr:audit"

Response:

Returns all audit entries that meet the specified criteria, including the full contents of the audit entries.

 

 Add an external audit entry on the repository

Request Headers:

TYPE  The type of the audit entry. See list of types. Should this be optional?

DESCRIPTION  (Optional) A text description of the event.

Example:

curl -X POST "http://localhost:8080/rest/fcr:audit"